Orientation Property (ACommonDialog)

Returns or sets a value indicating whether documents are printed in portrait or landscape mode.

Syntax

Object.Orientation [ = enOrientation ]

The Orientation property syntax has the following parts:

 

Name

Type

Description

Object

ACommonDialog

ACommonDialog object

enOrientation

enumACommonDialogOrientation

An integer specifying whether documents are printed in portrait or landscape mode.

Where

enumACommonDialogOrientation can be one of the following:

 

Name

Value

Description

acdlgOrientationPortrait

0 *

Portrait. Documents are printed with the top at the narrow side of the paper.

acdlgOrientationLandscape

1

Landscape. Documents are printed with the top at the wide side of the paper.

Comments

This property is available at run time only.

Example

The following statement changes the options of the ACommonDialog to print documents in Landscape mode.:

cdlg1.Orientation=acdlgOrientationLandscape

Applies to

ACommonDialog

See Also

PrinterDefault, PrintOptions, ShowPrint