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

LayoutPaperSize Property

Gets/Sets printer paper size.

Type

Long

Remarks

There are two ways to set a paper size into this property.

1. Use one of the values specified in prnPaperSize.
2. Use the returned value from GetPaperSize method.

Example Usage

Set oPrinter = CreateObject("easyPDF.Printer.8")

Set oSetting = oPrinter.PrinterSetting
oSetting.LayoutGraphicResolution = 600
oSetting.LayoutGraphicScaling = 100
oSetting.LayoutPaperOrientation = PRN_PAPER_ORIENT_LANDSCAPE
oSetting.LayoutPaperSize = PRN_PAPER_A4
oSetting.Save