are we 'printing' or 'previewing' ?
C#
2
Posts
2
Posters
0
Views
1
Watching
-
Hello! To my knowledge, .NET call the same code for print and preview. Is there a way to distinguish between 'printing' and 'previewing' ? Thank you. Sovann
-
Hello! To my knowledge, .NET call the same code for print and preview. Is there a way to distinguish between 'printing' and 'previewing' ? Thank you. Sovann
Normally not. But if you have access to the
Document
which is printed you could check itsPrintController
property. This one should have different types depending on the output destination.