Visual Basic Reference

Visual Studio 6.0

Duplex Property

See Also    Example    Applies To

Returns or sets a value that determines whether a page is printed on both sides (if the printer supports this feature). Not available at design time.


object.Duplex [= value]

The Duplex property syntax has these parts:

Part Description
Object An object expression that evaluates to an object in the Applies To list.
Value A value or constant that specifies the type of printing, as described in Settings.


The settings for value are:

Constant Value Description
VbPRDPSimplex 1 Single-sided printing with the current orientation setting.
VbPRDPHorizontal 2 Double-sided printing using a horizontal page turn.
VbPRDPVertical 3 Double-sided printing using a vertical page turn.


With horizontal duplex printing, the top of both sides of the page are at the same end of the sheet. With vertical duplex printing, the bottom of one page is at the same end of the sheet as the top of the next page. The following diagram illustrates horizontal and vertical duplex printing:

Note   The effect of the properties of the Printer object depends on the driver supplied by the printer manufacturer. Some property settings may have no effect, or several different property settings may all have the same effect. Settings outside the accepted range may produce an error. For more information, see the manufacturer's documentation for the specific driver.