473,406 Members | 2,387 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,406 software developers and data experts.

Creating HTML reports

bob
Hello,
I'm trying to create reports in my application using HTML. I don't
want to mess around typing in stuff like
html = "<Table>blah</Table>"

I want something like
row = new HTMLRow("Some text 1", "Some text 2");
table = new HTMLTable(row);
header = new HTMLHeader("Report header");
page = new HTMLPage(header, table);

I think mshtml should help but I haven't had much luck with it, is
there a guide anywhere?

Has anyone had any experiance with this sort of thing?

Thanks,
Bob
Nov 15 '05 #1
3 10597
It will be worse, not better.

You can take a look at some of the work that Tim Anderson has done @
http://www.itwriting.com/htmleditor/index.php

Make sure you check out the forms he's setup, because there is a lot of
information about usage there.

James Hancock

"bob" <bo**********@hotmail.com> wrote in message
news:b0**************************@posting.google.c om...
Hello,
I'm trying to create reports in my application using HTML. I don't
want to mess around typing in stuff like
html = "<Table>blah</Table>"

I want something like
row = new HTMLRow("Some text 1", "Some text 2");
table = new HTMLTable(row);
header = new HTMLHeader("Report header");
page = new HTMLPage(header, table);

I think mshtml should help but I haven't had much luck with it, is
there a guide anywhere?

Has anyone had any experiance with this sort of thing?

Thanks,
Bob

Nov 15 '05 #2
bob
Hi James,

thanks for replying.

I've looked at that code and you're right; using MSHTML to create HTML
seems to be absolutly horrific (why am I not surprised).

But if I just go straight in and start typing HTML into my code will
it not be difficult to make it consistant? Won't composing reports
from a load of seperate objects be a pain if they just answer strings?
How will I know if a report object is a page or just a table, they'll
both be strings so how can I reliably add more info to a report?

Is this really the best way to create reports in C#?

heading = CreateHeading();
anObjReport = anObject.CreateReport();
page = "<Page>" + heading + anObjReport + "</Page>";

Bob

"James Hancock" <~j****@darwinconsulting.com> wrote in message news:<#R**************@TK2MSFTNGP09.phx.gbl>...
It will be worse, not better.

You can take a look at some of the work that Tim Anderson has done @
http://www.itwriting.com/htmleditor/index.php

Make sure you check out the forms he's setup, because there is a lot of
information about usage there.

James Hancock

"bob" <bo**********@hotmail.com> wrote in message
news:b0**************************@posting.google.c om...
Hello,
I'm trying to create reports in my application using HTML. I don't
want to mess around typing in stuff like
html = "<Table>blah</Table>"

I want something like
row = new HTMLRow("Some text 1", "Some text 2");
table = new HTMLTable(row);
header = new HTMLHeader("Report header");
page = new HTMLPage(header, table);

I think mshtml should help but I haven't had much luck with it, is
there a guide anywhere?

Has anyone had any experiance with this sort of thing?

Thanks,
Bob

Nov 15 '05 #3
Hi Bob:

Maybe I'm missing something or maybe you've already tried this, but
have you tried a DataGrid control? You wouldn't have to manually setup
any rows.

--
Scott
http://www.OdeToCode.com

On 7 Jan 2004 04:52:16 -0800, bo**********@hotmail.com (bob) wrote:
Hi James,

thanks for replying.

I've looked at that code and you're right; using MSHTML to create HTML
seems to be absolutly horrific (why am I not surprised).

But if I just go straight in and start typing HTML into my code will
it not be difficult to make it consistant? Won't composing reports
from a load of seperate objects be a pain if they just answer strings?
How will I know if a report object is a page or just a table, they'll
both be strings so how can I reliably add more info to a report?

Is this really the best way to create reports in C#?

heading = CreateHeading();
anObjReport = anObject.CreateReport();
page = "<Page>" + heading + anObjReport + "</Page>";

Bob

"James Hancock" <~j****@darwinconsulting.com> wrote in message news:<#R**************@TK2MSFTNGP09.phx.gbl>...
It will be worse, not better.

You can take a look at some of the work that Tim Anderson has done @
http://www.itwriting.com/htmleditor/index.php

Make sure you check out the forms he's setup, because there is a lot of
information about usage there.

James Hancock

"bob" <bo**********@hotmail.com> wrote in message
news:b0**************************@posting.google.c om...
> Hello,
> I'm trying to create reports in my application using HTML. I don't
> want to mess around typing in stuff like
> html = "<Table>blah</Table>"
>
> I want something like
> row = new HTMLRow("Some text 1", "Some text 2");
> table = new HTMLTable(row);
> header = new HTMLHeader("Report header");
> page = new HTMLPage(header, table);
>
> I think mshtml should help but I haven't had much luck with it, is
> there a guide anywhere?
>
> Has anyone had any experiance with this sort of thing?
>
> Thanks,
> Bob


Nov 15 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: Ron | last post by:
I have VB .Net 2003 and I would like to create reports or a word document that can be viewed or printed. I do not have VS. Is it possible to use Access Reports or download a plug-in to VB or...
2
by: Dave | last post by:
Our company intranet allows various users to submit address information and contact names and numbers using ASP pages, that save to an Access 2000 database. There are no issues with retrieving,...
2
by: Joe_Black | last post by:
Hi all, I want to create an MDI app that allows reporting on XML data files downloaded from the equipment that we manufacture, this MDI app will have several default reports but due to the...
3
by: Przemo | last post by:
Hi, I have an ASP.NET 2.0 application. I need to generate some documents (reports) like invoices, orders, etc. Users need them to preview and print. Which of methods is the best for doing it:...
2
by: Dennis D. | last post by:
Hello: Creating Windows Forms Applications with VB.net: What are my options for creating properly formatted printable business reports using 2005 Express Edition? Particularly, would like to...
3
by: erick-flores | last post by:
Hello all I am creating an Expense Report. There are to types of expenses: Company expenses and Reimb Expeneses. The company expenses is under "Expense Details Co" table and Reimb Expenses is...
4
by: aflat362 | last post by:
If you look at this page on relational database design: http://r937.com/relational.html And scroll down to the "Many-to-Many Relationships" Section you will see a common database structure. ...
1
by: BK | last post by:
A little rant first... I have 15+ years experience with developing software. Why is it that everything related to creating reports in .NET seems so convoluted to me? I don't want to use...
4
by: sklett | last post by:
I've developed an ERP application that we use internally and works quite well. I receiving more and more requests from users to print various transactions, order forms, search results, etc. I...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.