visual studio 2010 vb + printdocument1
Posted on 2010-09-13
I have chosen my printer i want to print to. It is a pdf creator. You send to it and it comes out PDF.
I have a postscript document that I sent to the printer and it sits there with status of spooling.
Is there a command i need to send to printer to: Below is the code I wrote.
Function myPrintDocument(ByVal myDocument As String)
On Error Resume Next
Me.PrintDocument1.DefaultPageSettings.PrinterSettings.PrinterName = "ScanSoft PDF Create!"
Me.PrintDocument1.DefaultPageSettings.PrinterSettings.PrintFileName = myDocument
Me.PrintDocument1.DefaultPageSettings.PrinterSettings.PrintToFile = True