All Things VB

Just another Visual Basic weblog

Print from MSWord to PDF, PNG, JPEG, BMP, PCX, TIF, PS, EPS, TXT, PDF, PSD, PCL or RAW, using Visual Basic 6

Nick | June 16, 2009

So you want to print output from Visual Basic to a file.  Easy…
Install PDFCreator, it’s open source and free!
The VB Code you need is below, The parameters to use are
‘+- [OutputTypes] ———————————————————+
‘ “AutosaveFormat” – Format Values:
‘ 0 = PDF 1 = PNG 2 = JPEG
‘ 3 = BMP 4 = PCX 5 = TIFF
‘ 6 [...]