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/