Please enable JavaScript to view this site.

TIFF Image Printer

Description

Sets the paper size used by the printer; some common paper sizes are Letter, Legal or A4. When this option is not set  through the IPNSession object, the application that is printing will set the paper size or the default paper size set on the Layout tab through the PEERNET Inc. printer's Printing Preferences dialog will be applied to the output file.

To remove the forced paper size, call this method with an empty string. This will clear the setting.

The paper size 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.ForcePrinterPaperSize(PaperSize)

where expression is an IPNSession object.

Parameters

String PaperSize

The name of the paper size to use, such as Letter or Legal.

Remarks

Use the following to set these options using SetProperty:

Method Parameter

SetProperty Parameters

PaperSize

SectionName:

Devmode settings

PropertyName:

Paper Size

varValue:

VT_BSTR, name of the paper size.

"Letter", "A4", etc.

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

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