Solved

how to open a data in a html format

Posted on 1999-01-14
11
176 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
  • 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
 
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
What Is Threat Intelligence?

Threat intelligence is often discussed, but rarely understood. Starting with a precise definition, along with clear business goals, is essential.

 
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 200 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

What Should I Do With This Threat Intelligence?

Are you wondering if you actually need threat intelligence? The answer is yes. We explain the basics for creating useful threat intelligence.

Join & Write a Comment

Unlike C#, C++ doesn't have native support for sealing classes (so they cannot be sub-classed). At the cost of a virtual base class pointer it is possible to implement a pseudo sealing mechanism The trick is to virtually inherit from a base class…
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…
The viewer will learn how to user default arguments when defining functions. This method of defining functions will be contrasted with the non-default-argument of defining functions.
The viewer will learn how to clear a vector as well as how to detect empty vectors in C++.

760 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

Need Help in Real-Time?

Connect with top rated Experts

24 Experts available now in Live!

Get 1:1 Help Now