PDF Viewer ActiveX Control

PDFPrint 

 

Print the PDF. You may call LoadPDFFile method, then display the Print Dialog , let user select the Printer or set the Printer , Page Range programmatically.

Public Function PDFPrint()

 

No Parameter

No Return Value

Example

   

Visual Basic Syntax
PDFViewer1.LoadPDFFile "c:\yourpdf.pdf"
PDFViewer1.PrinterShowPrintDlg me.Handle
PDFViewer1.PDFPrint
'or set the Printer , Page Range programmatically
PDFViewer1.PrinterSetPrinterName "Microsoft Print to PDF"
PDFViewer1.PrinterSetPageOrientation 0
PDFViewer1.PrinterSetPageRange 1, 10
PDFViewer1.PDFPrint