When using a color printer, this property sets whether or not a document is printed in color or in monochrome.
Property Value
Value | Explanation |
---|---|
1 | Monochrome (DMCOLOR_MONOCHROME) |
2 | Color (DMCOLOR_COLOR) |
( ) The explanation contained in the parentheses has the same meaning as the constants used by WindowsAPI.
Explanation
When using a color printer, the ColorMode property sets whether or not a document is printed in color or in monochrome. To retrieve the ColorMode property value, first execute the GetDevModeInfo method, after which the value can be retrieved from the ColorMode property. To set the value of the ColorMode property, execute the SetDevModeInfo method.
Note: The ColorMode setting is dependent upon the printer driver. Because of this it is possible that the setting has no affect or an affect different than expected. For details about the color mode property of your printer, please refer to the printer manufacturer's manual.
Setting this value
This value can be set at runtime.
Retrieving this value
This value can be retrieved at runtime.