XPRINT GET COLORMODE statement  

Purpose

Retrieve the XPRINT colormode status.

Syntax

XPRINT GET COLORMODE TO colormode&

Remarks

XPRINT allows you to set the color or monochrome print mode if the printer driver supports it.  XPRINT GET COLORMODE retrieves the colormode status, assigning the value to the long integer variable specified by colormode&.  The value zero may be returned if colormode is not supported by the printer driver.  The following equates are predefined in the compiler to symbolically represent the possible status:

%DMCOLOR_MONOCHROME    = 1
%DMCOLOR_COLOR         = 2

If this statement is executed without a host printer attached, error 57 is generated.

See also

XPRINT ATTACH, XPRINT SET COLORMODE