Solved

how to open a data in a html format

Posted on 1999-01-14
11
183 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
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.

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

On Demand Webinar - Networking for the Cloud Era

This webinar discusses:
-Common barriers companies experience when moving to the cloud
-How SD-WAN changes the way we look at networks
-Best practices customers should employ moving forward with cloud migration
-What happens behind the scenes of SteelConnect’s one-click button

Question has a verified solution.

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

Templates For Beginners Or How To Encourage The Compiler To Work For You Introduction This tutorial is targeted at the reader who is, perhaps, familiar with the basics of C++ but would prefer a little slower introduction to the more ad…
This article shows you how to optimize memory allocations in C++ using placement new. Applicable especially to usecases dealing with creation of large number of objects. A brief on problem: Lets take example problem for simplicity: - I have a G…
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 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.

623 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