Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to trap after a report has been printed?
Message
From
10/04/2013 10:50:12
 
 
To
10/04/2013 07:21:27
General information
Forum:
ASP.NET
Category:
Windows Presentation Foundation (WPF)
Miscellaneous
Thread ID:
01570496
Message ID:
01570610
Views:
26
>>>Yup, using the winforms report viewer. What I want to do is after the user has hit the Print button in the dialog and the report sent to the spooler, prompt the user if the report printed properly and if so, then I'll update a table. For now, what I am doing is showing the reportviewer in a modal form and when it is closed I ask the user if it printed.
>>
>>I've never used the ReportViewer. Do you get access to the PrintDialog directly. If so is this the Winforms (System.Windows.Forms.PrintDialog) or the WPF (System.Windows.Controls.PrintDialog) version ?
>
>From what I can see I can trap when the user hits the Print button in the print dialog, not much else. How do I tell which version of the Print Dialog?

you should not do that - opens code up to problems with each new OS iteration/addition.
Dunno if you were using batch print jobs with systems before the DOS era - if so, think along those lines.
Trap / query only the internal machinery (back then operators were part of the machinery), not the GUI.
Sounds like a different approach might be needed, as printers can fail:
pipe report into file/pdf, save piped report in DB - if print job failed/got destroyed, they can get another copy from the DB.
Or get a printer (some fax systems used to do that) that will generate a report after printing.
Still mechanical error (in old times bad printer ribbon) might make it neccessary to have the saved fall-back report.

Just a quesy feeling that you are not using the fitting weapons for the problem at hand.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform