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

PrintToPhysicalPrinter Method

Print PDF to physical printer

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

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

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

function PrintToPhysicalPrinter($InputFileName,
                                $PhysicalPrinterName,
                                $From,
                                $To,
                                $NumberOfCopies,
                                $WholeDocument) 

BclPrcResult PrintToPhysicalPrinter(const BclPDFProcessorSettings* pSettings,
                                    const wchar_t* InputFileName,
                                    const wchar_t* PhysicalPrinterName,
                                    int From,
                                    int To,
                                    int NumberOfCopies,
                                    BclBool WholeDocument);
Sub PrintToPhysicalPrinter(InputFileName As String, _
                            PhysicalPrinterName As String, _
                            From As Long, _
                            To As Long, _
                            NumberOfCopies As Long, _
                            WholeDocument As Boolean)

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