Printing a .pdf
-
Hi All, I was examing the printing capabilities with .NET, and ran across 2 common scenarios 1.) Printing an image
// in the print page event handler ev.Graphics.DrawImage(Image.FromFile("C:\My Folder\MyFile.bmp"), _ ev.Graphics.VisibleClipBounds)
2.) Printing text viaDrawString
However, how could I stream (print) a .pdf ? Is this available with BCL or could you recommend third-party tool ? Thanks.R.Bischoff
-
Hi All, I was examing the printing capabilities with .NET, and ran across 2 common scenarios 1.) Printing an image
// in the print page event handler ev.Graphics.DrawImage(Image.FromFile("C:\My Folder\MyFile.bmp"), _ ev.Graphics.VisibleClipBounds)
2.) Printing text viaDrawString
However, how could I stream (print) a .pdf ? Is this available with BCL or could you recommend third-party tool ? Thanks.R.Bischoff
The .NET BCL doesn't know anything about a PDF file, so no, you can't use it to print one. You'd have to use a 3rd party control, ranging from one of the projects on SourceForge.net (free), to very expensive versions costing a couple thousand $. RageInTheMachine9532 "...a pungent, gastly, stinky piece of cheese!" -- The Roaming Gnome