Link to home
Start Free TrialLog in
Avatar of tko092397
tko092397

asked on

Check if chosed printer do color

Hi folks,

I would like to check if the chosed printer in the print dialog box is set on
color or not. It the printer dont support color, it is not. It it supports color,
it can be set to grayscale or color. I have tried with DEVMODE / dmColor,
but I think I am doing wrong. Please tell me what parameter I should check.

Thanks in advance, Tomas
ASKER CERTIFIED SOLUTION
Avatar of Arkadiy
Arkadiy

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of tko092397
tko092397

ASKER

Thanx. Exellent.
The condition in the answer should look as follows:

GetDeviceCaps(dc, NUMCOLORS) > 2 || GetDeviceCaps(dc, NUMCOLORS) < 0