Writing reports to file

K

Kim Mitchell

In the program that I have created, I can print reports. Is there an easy
way to turn the document printed using PrintDocument1_PrintPage into a file
that can be viewed using a word processor, notepad or other program. I
would like to save the reports to file and look the same as when they are
printed. In the current version, the report is all text. Thanks.

Kim
 
H

Herfried K. Wagner

Hello,

Kim Mitchell said:
In the program that I have created, I can print reports.
Is there an easy way to turn the document printed using
PrintDocument1_PrintPage into a file that can be viewed using
a word processor, notepad or other program. I would like
to save the reports to file and look the same as when they are
printed. In the current version, the report is all text. Thanks.

While printing you can dynamically write the data to a file:

System.IO.FileStream
System.IO.StreamWriter

Regards,
Herfried K. Wagner
 
K

Kim Mitchell

That would be great, but I am planning to distribute this application to
humdreds of relatives and may offer a commercial version. I don't think
that Adobe would like for me to give away their software with my
application.

Kim
 
K

Kim Mitchell

I haven't looked at Crystal Reports since version 1. It wasn't customizable
enough. Seems to me that it only worked with databases. I need a solution
that I can distribute with my program without have to pay a third party
license fee for each unit. I'll look into it. Thanks.

Kim
 

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

Top