how to open a data in a html format

i have some data in ms access i want to show that data in a
html format
mmnairAsked:
Who is Participating?
 
yuryzCommented:
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
 
Tommy HuiEngineerCommented:
The simplest way is to use MS Access's Save As HTML.
0
 
mmnairAuthor Commented:
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
Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

 
mmnairAuthor Commented:
Adjusted points to 200
0
 
nil_dibCommented:
So you want to write a program (wrote a program??) which generates HTML-files?
0
 
mmnairAuthor Commented:
i have something in a mdb format i want to write a programme so
that i can open it in a html format
0
 
nil_dibCommented:
You should post this question to CGI area!
I think that is what you are searching for.
0
 
mmnairAuthor Commented:
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
 
yuryzCommented:
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
 
yuryzCommented:
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
 
mmnairAuthor Commented:
thanks
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.