- Code: Select all
Function PrintPDF() As Boolean
Dim doc As New PdfDocument
doc.LoadFromFile(PdfDest)
doc.PrinterName = strPrinterName
doc.PrintFromPage = 1
doc.PrintToPage = doc.Pages.Count
Try
doc.PrintDocument.PrintController = New Printing.StandardPrintController
doc.PrintDocument.Print()
Return True
Catch ex As Exception
ErrorMessage = ex.Message
Return False
End Try
End Function
After updating to the latest library 10.2.0, this code doesn't compile.
Following properties and methods aren't there:
- PrinterName
PrintFromPage
PrintToPage
PrintDocument
Please point me to the right direction on how to update my code.