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
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
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
The condition in the answer should look as follows:
GetDeviceCaps(dc, NUMCOLORS) > 2 || GetDeviceCaps(dc, NUMCOLORS) < 0
GetDeviceCaps(dc, NUMCOLORS) > 2 || GetDeviceCaps(dc, NUMCOLORS) < 0
ASKER