protected void OnDocumentPrinted(Printer <DocumentType> printer, DocumentPrintedEventArgs <DocumentType> e)
 {
     if (DocumentPrinted != null)
     {
         DocumentPrinted(printer, e);
     }
 }
Example #2
0
 static void reportPrinter_DocumentPrinted(Printer <Report> arg1, DocumentPrintedEventArgs <Report> arg2)
 {
     System.Windows.Forms.MessageBox.Show(arg2.Document.Title,
                                          "Report Printed", System.Windows.Forms.MessageBoxButtons.OK, System.Windows.Forms.MessageBoxIcon.Information);
 }