Writing reports to file

  • Thread starter Thread starter Kim Mitchell
  • Start date Start date
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
 
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
 
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
 
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
 
Back
Top