Visual Basic Reference
ColorMode Property
See Also Example Applies To
Returns or sets a value that determines whether a color printer prints output in color or monochrome. Not available at design time.
Syntax
object.ColorMode [= value]
The ColorMode property syntax has these parts:
Part | Description |
Object | An object expression that evaluates to an object in the Applies To list. |
Value | A constant or integer that specifies the print mode, as described in Settings. |
Settings
The settings for value are:
Constant | Value | Description |
VbPRCMMonochrome | 1 | Print output in monochrome (usually shades of black and white). |
VbPRCMColor | 2 | Print output in color. |
Remarks
The default value depends on the printer driver and the current printer settings. Monochrome printers ignore this property.
Note The effect of the properties of the Printer object depends on the driver supplied by the printer manufacturer. Some property settings may have no effect, or several different property settings may all have the same effect. If you set the ColorMode property for a printer which doesnt support color, the setting is ignored. If you attempt to reference the ColorMode property, however, you will get an error message. Settings outside the accepted range may also produce an error. For more information, see the manufacturer's documentation for the specific driver.