XPRINT COLOR statement

Purpose

Set the foreground color (and, optionally, the background color) for various XPRINT statements.

Syntax

XPRINT COLOR foreground& [, background&]

Remarks

Colors are expressed as RGB values, or use -1 for the default color.  If the background parameter is -2, the background is not painted, allowing the content behind to become visible. Otherwise, the specified RGB color is used.

A host printer must first be connected with XPRINT ATTACH.  If a host printer is not attached, error 57 is generated.

See also

XPRINT, XPRINT ATTACH

Example

' Set colors to red foreground and blue background.

XPRINT COLOR %RED, RGB(0,0,191)