Returns or sets a value indicating whether documents are printed in portrait or landscape mode.
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. |
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. |
This property is available at run time only.
The following statement changes the options of the ACommonDialog to print documents in Landscape mode.:
cdlg1.Orientation=acdlgOrientationLandscape