Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

print preview

Posted on 2009-07-16
3
Medium Priority
?
251 Views
Last Modified: 2013-11-20
Hiya

How can I determine using code whether an application is doing a print preview or actually printing?

Ideally, I'd like to know this in OnPreparePrinting

John
0
Comment
Question by:IssacJones
  • 2
3 Comments
 
LVL 31

Accepted Solution

by:
Zoppo earned 1000 total points
ID: 24869166
Hi IssacJones,

the 'CPrintInfo' passed to 'OnPreparePrinting' contains a member 'm_bPreview' which is only set in print preview.

Hope that helps,

ZOPPO
0
 

Author Closing Comment

by:IssacJones
ID: 31604225
Thanks Zoppo - just the trick
0
 
LVL 31

Expert Comment

by:Zoppo
ID: 24869299
You're welcome ...
0

Featured Post

New feature and membership benefit!

New feature! Upgrade and increase expert visibility of your issues with Priority Questions.

Question has a verified solution.

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

Introduction: Dynamic window placements and drawing on a form, simple usage of windows registry as a storage place for information. Continuing from the first article about sudoku.  There we have designed the application and put a lot of user int…
If you use Adobe Reader X it is possible you can't open OLE PDF documents in the standard. The reason is the 'save box mode' in adobe reader X. Many people think the protected Mode of adobe reader x is only to stop the write access. But this fe…
This video will show you how to get GIT to work in Eclipse.   It will walk you through how to install the EGit plugin in eclipse and how to checkout an existing repository.
Is your data getting by on basic protection measures? In today’s climate of debilitating malware and ransomware—like WannaCry—that may not be enough. You need to establish more than basics, like a recovery plan that protects both data and endpoints.…

824 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