VpeSetDevDuplex

<< Click to Display Table of Contents >>

Navigation:  Device Control Properties >

VpeSetDevDuplex

Previous pageReturn to chapter overviewNext page

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

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

int VpeSetDevDuplex(

VpeHandle hDoc,

int duplex

)

VpeHandle hDoc

Document Handle

int duplex

possible values are:

Constant Name

Value

Comment

VDUP_SIMPLEX

1

 

VDUP_VERTICAL

2

 

VDUP_HORIZONTAL

3

 

Returns:

Value

Description

True

success

False

failure

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:

VpeSetDevDuplex(hDoc, VDUP_VERTICAL)