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

IsPaperAvailable Method

Checks if a paper is available.

Function GetPaperSize(PaperName As String) As Boolean

bool GetPaperSize(string PaperName)

boolean GetPaperSize(String PaperName) throws PrinterException

Parameters

Return Values

True if the specified paper is available; False otherwise.

Remarks

N/A.

Example Usage

Set oPrinter = CreateObject("easyPDF.Printer.8")
Set oSetting = oPrinter.PrinterSetting
oSetting.CreatePaper "My Custom Paper", 10.0, 10.0
If oSetting.IsPaperAvailable("My Custom Paper") Then
    oSetting.LayoutPaperSize = oSetting.GetPaperSize("My Custom Paper")
End If
oSetting.Save