This property sets whether a specific printer prints on one side or both sides of the paper. (Duplex printers only)

[C++Builder]   imagekitcontrolname->PrintDraw->Duplex [ = short ]
[Delphi]   imagekitcontrolname.PrintDraw.Duplex [ = Smallint ]

Property Value

Value Explanation
1 Single sided (DMDUP_SIMPLEX)
2 Double sided - Vertical (DMDUP_VERTICAL) [Also known as portrait]
3 Double sided - Horizontal (DMDUP_HORIZONTAL) [Also known as landscape]

( ) The explanation contained in the parentheses has the same meaning as the constants used by WindowsAPI

Explanation

The Duplex property sets whether a specific printer prints on one side or both sides of the paper (Duplex printers only).

To retrieve the Duplex property value, first execute the GetDevModeHandle or GetDevModeInfo method, after which the value can be retrieved from the Duplex property. To set the value of the Duplex property, execute the SetDevModeInfo method.

Note: The Duplex setting is dependent upon the printer driver. Because of this it is possible that the setting has no affect or an affect different than expected. For details about the duplex property of your printer, please refer to the printer manufacturer's manual.

Setting this value

This value can be set at runtime.

Retrieving this value

This value can be retrieved at runtime.

 

The ImageKit10 VCL is a product created by Newtone Corporation