How can I create a PDF file from my VB.Net app?
Printable View
How can I create a PDF file from my VB.Net app?
There is no functionality in the .NET Framework to do that. I doubt that there ever will be either, given that MS want to push XPS over PDF. The Framework does contain XPS functionality. To create a PDF you need to know the PDF file format and work with that at a low level. Fortunately, others have already done that, so there are various third-party components out there. iTextSharp is a popular free option, for which you can find some examples already posted on this forum and in the CodeBank.
Note that, if the user has a PDF printer driver installed, you can also print to that. If you are developing for a standard environment that you know will have such a driver then that might be the easiest option.