Orientation Property [Access 2003 VBA Language Reference]

Orientation property as it applies to the Printer object.

AcPrintOrientation

AcPrintOrientation can be one of these AcPrintOrientation constants.
acPRORLandscape
acPRORPortrait

expression.Orientation

expression Required. An expression that returns one of the above objects.

Orientation property as it applies to the Form and Report objects.

You can use the Orientation property to specify or determine the view orientation. Read/write Byte.

expression.Orientation

expression Required. An expression that returns one of the above objects.

Remarks

Orientation

Setting Visual Basic Description
Left-to-Right 0 Sets the view orientation to left to right.
Right-to-Left 1 Sets the view orientation to right to left.

property sheetVisual Basic

Example

As it applies to the Printer object.

The following example sets the print orientation to landscape.

Printer.Orientation = acPROLandscape

As it applies to the Form and Report objects.

The following example sets the view orientation to right-to-left for the "Purchase Order" report.

Reports("Purchase Order").Orientation = 1

Applies to | Form Object | Printer Object | Report Object

See Also | Copies Property | Duplex Property | PaperBin Property | PaperSize Property | PrintQuality Property | ScrollBarAlign Property