Interesting question! I thought it would be simple, but couldn't find any way to do it.
Here's a simple solution: Create your own print preview dialog using the PrintPreview control. It's easy to do. Then, you can track when users click the Print button on the form, so your code can definitely know when they're really printing (vs. previewing on the screen).
Love to hear if there's a reasonable way to do this using the PrintPreviewDialog control. I still feel that there is, and that we're just missing it. |