PtrDevice:Color Access/Assign
<< Click to Display Table of Contents >> PtrDevice:Color Access/Assign |
![]() ![]() ![]() |
Type | Logic |
Purpose
To get/set the DEVMODE.dmCOLOR member.
The access returns TRUE if the DEVMODE structure dmCOLOR member indicates that the printer is commanded to print color.
The assign sets the DEVMODE.dmCOLOR structure member. If TRUE, the printer is set for color, otherwise, it is set for monochrome.
Example
// Check whether the printer is set for color
if oPtrDevice:Color
// use color when printing
else
// do not need to worry about color
endif