Beispiel #1
0
 private void OnPrinting(int i)
 {
     if (PrintFinished != null)
     {
         EventHandler<PrintingEventArgs> del = (EventHandler<PrintingEventArgs>)Printing;
         PrintingEventArgs args = new PrintingEventArgs();
         args.CurrentPageNumber = i;
         del(this, args);
     }
 }
Beispiel #2
0
 static void printer_Printing(object sender, PrintingEventArgs e)
 {
     Console.WriteLine(e.CurrentPageNumber);
 }