Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to trap after a report has been printed?
Message
De
10/04/2013 11:38:18
 
 
À
10/04/2013 10:50:12
Information générale
Forum:
ASP.NET
Catégorie:
Windows Presentation Foundation (WPF)
Divers
Thread ID:
01570496
Message ID:
01570620
Vues:
28
>>>>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.

I feel pretty queasy too :(
Frank.

Frank Cazabon
Samaan Systems Ltd.
www.samaansystems.com
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform