Solved

Is the selected printer a postscript printer?

Posted on 1997-05-30
3
243 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
  • 2
3 Comments
 
LVL 4

Accepted Solution

by:
AVaulin earned 100 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

Gigs: Get Your Project Delivered by an Expert

Select from freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely and get projects done right.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Automating Allen Browne's Audit Trail for a large Database 7 52
Messagebox for a Web Site Application 4 69
*Best* PDF to Word Convertor 4 129
convert Photo To exact Size 10 92
I. Introduction In a previous article (http://www.experts-exchange.com/Web_Development/Document_Imaging/A_6537-PaperPort-Upgrade-How-to-download-and-install-updated-versions-of-PaperPort-11-and-12.html) (now deprecated), I discussed how to upgrad…
Whether you've completed a degree in computer sciences or you're a self-taught programmer, writing your first lines of code in the real world is always a challenge. Here are some of the most common pitfalls for new programmers.
This video is the second in a two-part series that discusses PaperPort's "Send To Bar" feature . The first video tutorial (http://www.experts-exchange.com/VP_207.html) explains the purpose of the Send To Bar, how to use it, and how to hide unwanted …
In this first video of the three-part Xpdf series, we introduce and describe Xpdf, a library containing nine command line utilities that perform various functions on PDF files. We show where the library is located and how to download it, discuss its…

816 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

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now