DevColor

<< Click to Display Table of Contents >>

Navigation:  Device Control Properties >

DevColor

Previous pageReturn to chapter overviewNext page

[Windows platform only; not supported by PHP and the Community Edition]

Returns / sets the color mode for the currently selected output device, only useful, if the output device is a color printer.

property DevColor [integer] VPE.DevColor

read / write; runtime only

Possible Values:

ActiveX / VCL

Value

Enum

Comment

VCOLOR_MONOCHROME

1

Monochrome

 

VCOLOR_COLOR

2

Color

 

Remarks:

In case of an error, LastError is set to VERR_COMMON. An error may occur if the device does not support setting the color mode.

Example:

ActiveX / VCL

Doc.DevColor = VCOLOR_MONOCHROME

 

.NET

Doc.DevColor = DevColor.Monochrome