Solved

print preview

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

Windows Server 2016: All you need to know

Learn about Hyper-V features that increase functionality and usability of Microsoft Windows Server 2016. Also, throughout this eBook, you’ll find some basic PowerShell examples that will help you leverage the scripts in your environments!

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
sumNumber challenge 16 124
string initialization in java 11 114
lucky13 challenge 11 149
matchUp  challenge 6 65
Introduction: Finishing the grid – keyboard support for arrow keys to manoeuvre, entering the numbers.  The PreTranslateMessage function is to be used to intercept and respond to keyboard events. Continuing from the fourth article about sudoku. …
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.

825 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