Solved

print preview

Posted on 2009-07-16
3
243 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 30

Accepted Solution

by:
Zoppo earned 250 total points
Comment Utility
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
Comment Utility
Thanks Zoppo - just the trick
0
 
LVL 30

Expert Comment

by:Zoppo
Comment Utility
You're welcome ...
0

Featured Post

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

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 (1) modal - maintaining the database. Continuing from the ninth article about sudoku.   You might have heard of modal and modeless dialogs.  Here with this Sudoku application will we use one of each type: a modal dialog …
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.
This video shows how to remove a single email address from the Outlook 2010 Auto Suggestion memory. NOTE: For Outlook 2016 and 2013 perform the exact same steps. Open a new email: Click the New email button in Outlook. Start typing the address: …

772 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

11 Experts available now in Live!

Get 1:1 Help Now