I am trying to get a document to automatically print to the default printer using the following code:
- Code: Select all
Dim PDFDocumentToPrint As New PdfDocument
PDFDocumentToPrint.LoadFromFile(strFileName)
Dim PrintDoc = PDFDocumentToPrint.PrintDocument
PrintDoc.Print()
When i run the application the application freezes completely when it tries to run the
- Code: Select all
PrintDoc.print()
Can someone please advise what i am doing wrong as from looking through the help files this is how to do it.
Thanks in advanced
Frosty