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

PaperOrientation Property

Sets paper orientation.


prnPaperOrientation (write-only)


Word does not use the paper orientation setting from the printer driver (in other words the value of the PrinterSetting object's LayoutPaperOrientation property is ignored). If you need to change the paper orientation, use this property instead.

Example Usage in VBScript

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

Set oPrintJob = oPrinter.WordPrintJobEx
oPrintJob.PaperOrientation = PRN_PAPER_ORIENT_LANDSCAPE

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

Example Usage in VB.NET

Dim oPrinter As Printer = CreateObject("easyPDF.Printer.8")

Dim oPrintJob As WordPrintJobEx = oPrinter.WordPrintJobEx
oPrintJob.PaperOrientation = prnPaperOrientation.PRN_PAPER_ORIENT_LANDSCAPE

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

Example Usage in C#

Printer oPrinter = new Printer();

WordPrintJobEx oPrintJob = oPrinter.WordPrintJobEx;
oPrintJob.PaperOrientation = prnPaperOrientation.PRN_PAPER_ORIENT_LANDSCAPE;

oPrintJob.PrintOut(@"C:\test\input.doc", @"C:\test\output.pdf");