?
Solved

how to open a data in a html format

Posted on 1999-01-14
11
Medium Priority
?
185 Views
Last Modified: 2010-04-16
i have some data in ms access i want to show that data in a
html format
0
Comment
Question by:mmnair
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 5
  • 3
  • 2
  • +1
11 Comments
 
LVL 15

Expert Comment

by:Tommy Hui
ID: 1182246
The simplest way is to use MS Access's Save As HTML.
0
 

Author Comment

by:mmnair
ID: 1182247
actually i  am accessing the data using odbc ,so the data in mdb
format must be changed into html format when i click a button in a dialog box.
0
 

Author Comment

by:mmnair
ID: 1182248
Adjusted points to 200
0
Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
LVL 4

Expert Comment

by:nil_dib
ID: 1182249
So you want to write a program (wrote a program??) which generates HTML-files?
0
 

Author Comment

by:mmnair
ID: 1182250
i have something in a mdb format i want to write a programme so
that i can open it in a html format
0
 
LVL 4

Expert Comment

by:nil_dib
ID: 1182251
You should post this question to CGI area!
I think that is what you are searching for.
0
 

Author Comment

by:mmnair
ID: 1182252
i am programming in vc++ /odbc.i  am accessing the data using odbc ,so the data in mdb format must be changed into html format  and open a new html file .when i click a button in a dialog box.
0
 
LVL 1

Accepted Solution

by:
yuryz earned 600 total points
ID: 1182253
1. Create app which have access to data via odbc (I see you done it already)
2. On some button click (or whatever), you can EASILY generate HTML keeping in mind such easy things like basic HTML directives.

CStdioFile file( name, flags, etc );
WriteHtmlHeader( file );
while( !odbc_base.is_empty() )
{
   CSomeCoolRecord rec; odbc_get_record( rec );
   WriteRecordLineIntoHTML( file, rec );
}

The other way is to register Moniker object in Windows which serves HTML requests, so, when your base is calling via HTML (from IE), you can pass back formatted (the same way as above) data back to caller. Check "monikers" section in SDK etc.
0
 
LVL 1

Expert Comment

by:yuryz
ID: 1182254
Oops, more to my comment above: in first case you should launch IE (or whatever browser you use) given your tempfilename as parameter, or issue DDE call with "open" method.
0
 
LVL 1

Expert Comment

by:yuryz
ID: 1182255
hmm, or you can use IE as activex object and insert it into your app dialog and pass filename as parameter of calling activex via automation.
0
 

Author Comment

by:mmnair
ID: 1182256
thanks
0

Featured Post

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Article by: SunnyDark
This article's goal is to present you with an easy to use XML wrapper for C++ and also present some interesting techniques that you might use with MS C++. The reason I built this class is to ease the pain of using XML files with C++, since there is…
IntroductionThis article is the second in a three part article series on the Visual Studio 2008 Debugger.  It provides tips in setting and using breakpoints. If not familiar with this debugger, you can find a basic introduction in the EE article loc…
The goal of the video will be to teach the user the concept of local variables and scope. An example of a locally defined variable will be given as well as an explanation of what scope is in C++. The local variable and concept of scope will be relat…
The viewer will be introduced to the technique of using vectors in C++. The video will cover how to define a vector, store values in the vector and retrieve data from the values stored in the vector.

718 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question