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

PaperOrientation Property

Sets paper orientation.

Type

prnPaperOrientation (write-only)

Remarks

Excel does not use the paper orientation setting from printer driver. If you need to change the paper orientation, use this property instead.

Example Usage

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

Set oPrintJob = oPrinter.ExcelPrintJobEx
oPrintJob.PaperOrientation = PRN_PAPER_ORIENT_LANDSCAPE

oPrintJob.PrintOut "C:\test\input.xls", "C:\test\output.pdf"