How to know that a crystal report was printed?
Good day guys.I had this problem on how can I possibly know that a certain report was printed.In my application, I had a reoprt generated using crystal report, when the user click on the print button a print dialog box will show but the matter is the user can still cancel the printing, so in this case I cannot use the PrintReport event.What I really needed is the event that the user had clicked the print button in the print dialog.Thanks in advance.
Re: How to know that a crystal report was printed?
You can get the return value to determine if the print button in the dialog was clicked or canceled.
VB Code:
oReport.PrintOut True, 1 'PRINT DIALOG
If oReport.PrintingStatus.Progress = crPrintingCancelled Then
MsgBox "Canceled"
ElseIf moReport.PrintingStatus.Progress = crPrintingFailed Then
MsgBox "Error"
Else
MsgBox "Printed"
End If