Improve company productivity with a Business Account.Sign Up

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 252
  • Last Modified:

print preview

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
IssacJones
Asked:
IssacJones
  • 2
1 Solution
 
ZoppoCommented:
Hi IssacJones,

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

Hope that helps,

ZOPPO
0
 
IssacJonesAuthor Commented:
Thanks Zoppo - just the trick
0
 
ZoppoCommented:
You're welcome ...
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Get your problem seen by more experts

Be seen. Boost your question’s priority for more expert views and faster solutions

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now