Esempio n. 1
0
 void HandlePrintEndPrint(object o, EndPrintArgs args)
 {
     ReportPrinted?.Invoke(this, EventArgs.Empty);
     printing.BeginPrint -= HandlePrintBeginPrint;
     printing.DrawPage   -= HandlePrintDrawPage;
     printing.EndPrint   -= HandlePrintEndPrint;
     printing.Dispose();
 }
Esempio n. 2
0
        public void Handle(ReportPrinted notification)
        {
            if (notification.TableId != Table.InvoiceTableId)
            {
                // We're only interested in invoice reports, other reports
                // we could not care less about
                return;
            }

            _InvoiceStream.Write <InvoicePrinted>(builder => builder
                                                  .WithCorrelationId(notification.RecordId)
                                                  .WithEvent(_Mapper.Map <ReportPrinted, InvoicePrinted>(notification))
                                                  .WithMetaData(evt => new { evt.ReportId }));
        }
Esempio n. 3
0
 void HandlePrintEndPrint(object o, EndPrintArgs args)
 {
     ReportPrinted?.Invoke(this, EventArgs.Empty);
 }
Esempio n. 4
0
 public void RiseReportPrinted()
 {
     ReportPrinted?.Invoke(this, EventArgs.Empty);
 }
Esempio n. 5
0
 protected void OnReportviewer1ReportPrinted(object sender, EventArgs e)
 {
     ReportPrinted?.Invoke(this, EventArgs.Empty);
 }