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

PaperHeight Property

Gets paper height.

Type:

Double (inches, read-only)

Remarks

N/A.

Example Usage


' Declare variable with "WithEvents" keyword
Private WithEvents oJobMonitor As easyPDFPrinter.PrintJobMonitor

Private Function oJobMonitor_OnPrinterInit(ByVal uID As Long, ByVal JobInfo As easyPDFPrinter.PrintJobInfo) As Long
    MsgBox "Paper Width: " + CStr(JobInfo.PaperWidth) + " inches"
    MsgBox "Paper Height: " + CStr(JobInfo.PaperHeight) + " inches"
    oJobMonitor_OnPrinterInit = PRN_MON_CONTINUE_CONVERSION
End Function

' ...

Set oPrinter = CreateObject("easyPDF.Printer.8")
Set oPrintJob = oPrinter.PrintJob
Set oJobMonitor = oPrinter.PrintJobMonitor
oPrintJob.PrintOut "C:\test\input.doc", "C:\test\output.pdf"