BCL easyPDF SDK
easyPDF SDK Usermanual
PDF Creator Programming API  |  Download Free Trial  |  Contact Us to Purchase

PrintToPhysicalPrinter Method

Print PDF to physical printer

Sub PrintToPhysicalPrinter(InputFileName As String,
                            PhysicalPrinterName As String,
                            From As Long,
                            To As Long,
                            NumberOfCopies As Long,
                            WholeDocument As Boolean)

void PrintToPhysicalPrinter(string InputFileName,
                             string PhysicalPrinterName,
                             int From,
                             int To,
                             int NumberOfCopies,
                             bool WholeDocument)

void PrintToPhysicalPrinter(String InputFileName,
                             String PhysicalPrinterName,
                             int From,
                             int To,
                             int NumberOfCopies,
                             boolean WholeDocument) throws PDFProcessorException

Parameters

Return Values

N/A.

Remarks

The page number doesn't use zero-based index, meaning that page number starts from 1.

Example Usage

Set oProcessor = CreateObject("easyPDF.PDFProcessor.8")
 
oProcessor.PrintToPhysicalPrinter "C:\test\input.pdf", _
                                  "\\Meteor\HP LaserJet 4000 PCL 5e",_
                                  1,_
                                  1,_
                                  1,_
                                  1