Orientation

This function accesses the orientation parameter associated with a specific Windows printer.

Group: Printer Extensions


Syntax: Printer.Orientation = enValue

enValue   (enPrintOrientation) is the text orientation to use.
PrintHorizontal (Portrait)
PrintVertical (Landscape)

Example:

Printer.Orientation = PrintHorizontal

Note: there is a special condition with the Copies, Orientation and PrintQuality commands. Since the server manages the beginning and ending of a print job, the VBA scripts must not use one of these commands after the Printer.Print command. These 3 commands will start a new print job and all settings defined up to this point will be lost.

This is valid:

Printer.Copies = 10

Printer.Orientation = PrintHorizontal

Printer.Print "Sample Text"

Printer.EndDoc

This is not because the Orientation line will lose the 2 lines above it.

Printer.Copies = 10

Printer.Print "Sample Text"

Printer.Orientation = PrintHorizontal

Printer.EndDoc

Supported Versions:       RFgen 4.0 and newer.