Orientation Property

Microsoft Access Visual Basic

Show All

Orientation Property

       

Orientation property as it applies to the Printer object.

You can use the Orientation property to specify or determine the print orientation. Read/write 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

The Orientation property uses the following settings.
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.

You can set this property by using the property sheet or Visual 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