Printer Object
 
Syntax
 
Printer.Duplex = vsCollateSettings
 
Description
Returns or sets duplex or double-sided printing.
 
This property determines whether pages should be printed on a single side or on both sides. Note that many printers do not support this feature.
 
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.
 
This property relies on the printer driver, and may or may not be available on a particular printer. After setting this property, read it back to make sure the driver made the change, or check the Error property. If it is set to vperDeviceIncapable (7), then the printer does not support the selected setting and you should take appropriate action.
 
Parameter
Description
vsCollateSettings
This parameter contains the following pre-defined constants and values:
 
Constant
Value
Description
dupSimplex
1
Single-sided printing.
dupVertical
2
Double-sided printing using a horizontal page turn.
dupHorizontal
3
Double-sided printing using a vertical page turn.
See Also
 
Example