PtrDevice:Color Access/Assign

<< Click to Display Table of Contents >>

Navigation:  RpPrinter & PtrDevice Class Overview > PtrDevice Class >

PtrDevice:Color Access/Assign

Previous pageReturn to chapter overviewNext page
Type        Logic


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.  


// Check whether the printer is set for color

if oPtrDevice:Color

         // use color when printing


         // do not need to worry about color