Solved

print preview

Posted on 2009-07-16
3
244 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 250 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
WinWaitActive parameters 12 31
zeroFront challenge 7 80
Making an alias 7 80
Way to decrease size of apk file 9 43
Introduction: The undo support, implementing a stack. Continuing from the eigth article about sudoku.   We need a mechanism to keep track of the digits entered so as to implement an undo mechanism.  This should be a ‘Last In First Out’ collec…
Introduction: Dialogs (2) modeless dialog and a worker thread.  Handling data shared between threads.  Recursive functions. Continuing from the tenth article about sudoku.   Last article we worked with a modal dialog to help maintain informat…
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.
Internet Business Fax to Email Made Easy - With  eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, f…

920 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

15 Experts available now in Live!

Get 1:1 Help Now