CdlPRDPConstants enumeration

Selects one-sided or two-sided (duplex) printing.

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 VB6 PrinterObjectConstants_Duplex constant of the same name without the Cdl prefix. The class passes the value to the printer unchanged.

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

Member Value Description
CdlPRDPSimplex 1 Prints on one side of the paper. This is the default of the property.
CdlPRDPHorizontal 2 Prints on both sides, with the pages bound on the long edge. The value is that of the Windows constant DMDUP_VERTICAL.
CdlPRDPVertical 3 Prints on both sides, with the pages bound on the short edge. The value is that of the Windows constant DMDUP_HORIZONTAL.

Used by

See Also