DevDuplex

<< Click to Display Table of Contents >>

Navigation:  Device Control Properties >

DevDuplex

Previous pageReturn to chapter overviewNext page

[Windows platform only; not supported by PHP and the Community Edition]

Selects duplex (or double-sided) printing for the currently selected output device (if it is capable of duplex printing).

property DevDuplex [integer] VPE.DevDuplex

read / write; runtime only

Possible Values:

ActiveX / VCL

Value

Enum

Comment

VDUP_SIMPLEX

1

Simplex

 

VDUP_VERTICAL

2

Vertical

 

VDUP_HORIZONTAL

3

Horizontal

 

Remarks:

In case of an error, LastError is set to VERR_COMMON. An error may occur if the device does not support setting the duplex mode.

Example:

ActiveX / VCL

Doc.DevDuplex = VDUP_VERTICAL

 

.NET

Doc.DevDuplex = DevDuplex.Vertical