Link to home
Start Free TrialLog in
Avatar of DANANDERSSON
DANANDERSSON

asked on

Is the selected printer a postscript printer?

Hi,

I'm using Visual C++ 5.0 and MFC's common dialog class CPrintDialog to let the user select printer, printer options, and range of pages to print. After (s)he clicks OK I need to know if the selected printer is a postscript printer since we convert TIFF files to PS files before printing anything.

Any help is deeply appreciated!

Thanks,      
      Dan
_____________________________
Dan Andersson
Frontec Norr AB
Sweden
Email: dan@lule.frontec.se
ASKER CERTIFIED SOLUTION
Avatar of AVaulin
AVaulin
Flag of Ukraine image

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 DANANDERSSON
DANANDERSSON

ASKER

I was a little to quick to give A Vaulin credit for the answer. It seems like all my printers give the value of the dmTTOption field to DMTT_SUBDEV. For instance I have a laber printer (Axiohm LabelWriter XL Plus) that definitely is not a Postscript printer. This printer gives the value DMTT_SUBDEV.

Have any other clues?

Thanks,
                 Dan    (dan@lule.frontec.se)
There is also one way: there is dmDeviceName member which is unique among device drivers. You can analyze it.