export text show as html

  • Thread starter Thread starter amir
  • Start date Start date
A

amir

hello again,
i was wandering if there is an easy way to export text from my
database to an html report...
amir.
 
Hi Amir,
i was wandering if there is an easy way to export text from my
database to an html report...

Unless you want to use general-purpose reporting systems/engines like
Crystal Reports for this task, it is best to write your own code.

I've lost count of how many database-data-to-html applications I've written
during the years, but in every single one the basic principle has been the
same: run a SQL query, loop through the results, and generate your HTML code
based on the data.

From your question it is difficult to say whether you find the database side
or the HTML generation side more difficult, but outputting HTML is quite
simple actually. Also, you could use a web page editor two design an HTML
file skeleton, and then embed certain special tags inside it. Then your C#
application would replace those tags with the database data.

It is also possible to convert your database stuff into XML format, and then
use XSLT (XSL transformations) to generate the HTML from these XML files.

Good luck!

--
Regards,

Mr. Jani Järvinen
C# MVP
Helsinki, Finland
(e-mail address removed)
http://www.saunalahti.fi/janij/
 
Hi Amir,


Unless you want to use general-purpose reporting systems/engines like
Crystal Reports for this task, it is best to write your own code.

I've lost count of how many database-data-to-html applications I've written
during the years, but in every single one the basic principle has been the
same: run a SQL query, loop through the results, and generate your HTML code
based on the data.

From your question it is difficult to say whether you find the database side
or the HTML generation side more difficult, but outputting HTML is quite
simple actually. Also, you could use a web page editor two design an HTML
file skeleton, and then embed certain special tags inside it. Then your C#
application would replace those tags with the database data.

It is also possible to convert your database stuff into XML format, and then
use XSLT (XSL transformations) to generate the HTML from these XML files.

Good luck!

--
Regards,

Mr. Jani Järvinen
C# MVP
Helsinki, Finland
(e-mail address removed)://www.saunalahti.fi/janij/

Thnx for the info. Actually dont find niether of the sides (db,html)
difficult just wandered maybe they had a feature for that.
thnx a lot,
amir.
 
Dreamweaver does things like this

Visual Studio; we still don't understand the whole 'web development
persona' so you'll have to wait for the next version of 'Visual Web
Developer'

it should be out next month

-Todos
 
Hi Todos,
Dreamweaver does things like this

Yeah, you could use newest versions of Dreamweaver for these kind of things,
but also Crystal Reports, or the many reporting engines out there, and so
forth.

But since Amir posted his question to this C# forum, it is pretty safe to
assume he wants to use Visual Studio for the job. Although better solutions
could be available, developers just love the challenge to code, don't they?
:-)

--
Regards,

Mr. Jani Järvinen
C# MVP
Helsinki, Finland
(e-mail address removed)
http://www.saunalahti.fi/janij/
 
a) Dreamweaver supports C#
b) C# was never invented
c) C# newsgroup is the property of the VB folk. you dipshits
shouldn't have jumped on the bandwagon and supported a new language
just because it has a # in the name of the language. I mean-- how
friggin trendy
 
Dreamweaver is BETTER with C# than Visual Studio


and I repeat

C# was never invented
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top