Groups | Blog | Home
all groups > dotnet interop > august 2005 >

dotnet interop : Write PDF Report ?


WJ
8/11/2005 10:05:25 PM
I am planning to use PDF as a final report so that users can save what they
have entered in the asp.aspx form to their own hard disk. Is there a
component or control that will handle this ? I donot wish to use Crystal
Report nor SQL Report.

All I need is: when the use presses the "Print" button, my asp.aspx form
will print the html format for them. If "Print to PDF File" is pressed, then
the asp.aspx form will first write all fields as they appear on the web form
to a PDF file and automatically send it into the user's pc Acrobat reader.

Thanks

John

Marvin Massih
8/12/2005 12:00:00 AM
Hello John,

[quoted text, click to view]

Create a new postscript printer (e.g. by using Adobe's Universal
PostScript Windows Driver") and have it print to a file.
You can then have this postscript file converted to PDF by GhostScript.

http://www.mml.uni-hannover.de/einhorn/makepdf/

explains how to do this (unfortunately only in German) and contains
links to where you can find what is needed.
I'm sure Google will be able to tell you more about GhostScript.

Regards,
Marvin Massih
8/12/2005 12:00:00 AM
P.S.:
You can then set the ContentType to "application/pdf" (if I recall
correctly) and send the PDF file as binary data.
This will automatically launch the user's PDF viewer (provided the
Marvin Massih
8/12/2005 12:00:00 AM
[quoted text, click to view]

Hope I could help ;). Feel free to contact me if you have further questions.

WJ
8/12/2005 2:58:36 PM
Thanks Marvin. I will try them out.

John

AddThis Social Bookmark Button