CdlPRORConstants enumeration

Selects the orientation of the paper.

The enumeration is declared inside the CommonDialog class. Its members are used without a qualifier, or with the name of the enumeration. Each member has the value of the Windows DMORIENT_ constant of the same meaning, which is also the value of the VB6 PrinterObjectConstants_Orientation constant of the same name without the Cdl prefix.

The Orientation property accepts only these two members; any other value raises run-time error 380.

Member Value Description
CdlPRORPortrait 1 Portrait: the paper is taller than it is wide. This is the default of the property.
CdlPRORLandscape 2 Landscape: the paper is wider than it is tall.

Used by

See Also