XPRINT SET DUPLEX statement  

Purpose

Change the XPRINT duplex status.

Syntax

XPRINT SET DUPLEX numrexp

Remarks

XPRINT allows you to set the duplex status, if the printer supports printing on both sides of a page.  XPRINT SET DUPLEX changes the mode to that specified by the numrexp.  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, error 5 is generated.  If this statement is executed without a host printer attached, error 57 is generated.

See also

XPRINT ATTACH, XPRINT GET DUPLEX