Please enable JavaScript to view this site.

TIFF Image Printer

Description

Sets the page orientation of the printer. When this option is not set through the IPNSession object, the default page orientation on the Layout tab in the PEERNET Inc. printer's Printing Preferences dialog will be applied to the output file instead.

To remove the forced page orientation, call this method with pnPrinterOrientationDefault as the orientation. This will clear the setting.

The page orientation can also be set and cleared individually using the SetProperty call with the appropriate arguments. See the Remarks below for the arguments needed.

Syntax

expression.ForcePrinterOrientation(Orientation)

where expression is an IPNSession object.

Parameters

pnPrinterOrientation Orientation

A pnPrinterOrientation constant for the page orientation of the printer.

Remarks

Use the following to set these options using SetProperty:

Method Parameter

SetProperty Parameters

Orientation

SectionName:

Devmode settings

PropertyName:

Orientation

varValue:

VT_BSTR, one of the following:

Portrait

Landscape

Supported Printers: TIFF Image Printer, PDF Image Printer, Raster Image Printer

See Also: ForcePrinterColorMode ForcePrinterPaperSize ForcePrinterResolution SetDevModeSettings ClearDevmodeSettings SetProperty pnPrinterColorMode pnPrinterOrientation pnPrinterResolution