?
Solved

Is the selected printer a postscript printer?

Posted on 1997-05-30
3
Medium Priority
?
260 Views
Last Modified: 2013-12-03
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
0
Comment
Question by:DANANDERSSON
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 
LVL 4

Accepted Solution

by:
AVaulin earned 400 total points
ID: 1397719
Use CPrintDialog::GetDevMode. If dmTTOption field of returned DEVMODE structure equal DMTT_SUBDEV then selected printer is PostScript.
0
 

Author Comment

by:DANANDERSSON
ID: 1397720
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)
0
 
LVL 4

Expert Comment

by:AVaulin
ID: 1397721
There is also one way: there is dmDeviceName member which is unique among device drivers. You can analyze it.
0

Featured Post

Visualize your virtual and backup environments

Create well-organized and polished visualizations of your virtual and backup environments when planning VMware vSphere, Microsoft Hyper-V or Veeam deployments. It helps you to gain better visibility and valuable business insights.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In a previously published article (http://www.experts-exchange.com/articles/10331/Automatic-Duplex-Scanning-in-PaperPort-Versions-11-12-14.html) here at Experts Exchange, I explained how to achieve duplex (double-sided) scanning in Nuance's PaperPor…
PaperPort 14.5 Patch 1 update is often not detected or downloaded automatically. This article provides direct download links to solve the problem for retail (non-bundled) versions of the Standard and Professional editions, as well as the Professiona…
In this video, we show how to convert an image-only PDF file into a PDF Searchable Image file, that is, a file with both the image (typically from scanning) and text, which is created in an automated fashion with Optical Character Recognition (OCR) …
This video Micro Tutorial is the second in a two-part series that shows how to create and use custom scanning profiles in Nuance's PaperPort 14.5 (http://www.experts-exchange.com/articles/17490/). But the ability to create custom scanning profiles a…

764 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question