XPRINT GET DUPLEX statement  

Purpose

Retrieve the XPRINT duplex status.

Syntax

XPRINT GET DUPLEX TO DuplexVar&

Function Form:

DuplexVar& = XPRINT(DUPLEX)

Remarks

XPRINT allows you to get/set the duplex status, if the printer supports printing on both sides of a page.  XPRINT GET DUPLEX retrieves the duplex status, assigning the value to the long integer variable specified by DuplexVar&.  The following equates are predefined in the compiler to symbolically represent the possible duplex status:

%DMDUP_SIMPLEX         = 1    (single sided printing)
%DMDUP_VERTICAL        = 2    (page flipped on the vertical edge)
%DMDUP_HORIZONTAL      = 3    (page flipped on the horizontal edge)

If the printer does not support duplex printing, the value zero (0) is returned.  If this statement is executed without a host printer attached, error 57 is generated.

See also

XPRINT ATTACH, XPRINT SET DUPLEX