How to know if the PrintDialogue actually print

maribela

New member
Joined
Mar 29, 2012
Messages
1
Programming Experience
Beginner
hi, i am trying to code a counter for every print that my program makes. But i dont know how because the end code of printing is this:
PrintPreviewDialog1.ShowDialog()


how can i know or code if it actually printed the object? i cant just append a counter because it will count even the cancelled prints. Help me please, thank u..
 

JohnH

VB.NET Forum Moderator
Staff member
Joined
Dec 17, 2005
Messages
15,558
Location
Norway
Programming Experience
10+
ShowDialog return value has no meaning for PrintPreviewDialog - and even if it did it couldn't account for multiple printouts from a single dialog.
Check e.PrintAction in the PrintDocuments BeginPrint event handler.
 
Top Bottom