Please enable JavaScript to view this site.

TIFF Image Printer

 

warning

This method has been made obsolete in PNSrv12Lib. Use ForcePrinterOrientation, ForcePrinterResolution, ForcePrinteColorMode , ForcePrinterPaperSize instead.

Description

Forces the printer to use the color mode, resolution, paper orientation and paper size options specified. In most cases not all of the options need to be set, often only the printer resolution or color mode may be needed.

The printer options can also be set individually using the SetProperty call with the appropriate arguments. See the Remarks below for a list of arguments.

Syntax

expression.SetDevmodeSettings(Orientation, Resolution, ColorMode, PaperSize)

where expression is an IPNSession object.

Parameters

pnPrinterOrientation Orientation

A pnPrinterOrientation constant for the orientation of the paper.

pnPrinterResolution Resolution

A pnPrinterResolution constant for the resolution of the output file.

Boolean ColorMode

The color mode of the output file. Enter True for color and False for black and white.

String PaperSize

The name of the paper size of the output file. Any paper size listed through the printer user interface can be used here.

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

Resolution

SectionName:

Devmode settings

PropertyName:

Resolution

varValue:

VT_I4, one of the following:

1200

720

600

400

360

300

254

240

200

150

120

100

75

60

50

ColorMode

SectionName:

Devmode settings

PropertyName:

Color

varValue:

VT_BOOL, True for Color, False for Monochrome

PaperSize

SectionName:

Devmode settings

PropertyName:

Paper Size

varValue:

VT_BSTR, name of the paper size such as "Letter" or "A4"

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

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