Exemplo 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();
 }
Exemplo 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 }));
        }
Exemplo n.º 3
0
 void HandlePrintEndPrint(object o, EndPrintArgs args)
 {
     ReportPrinted?.Invoke(this, EventArgs.Empty);
 }
Exemplo n.º 4
0
 public void RiseReportPrinted()
 {
     ReportPrinted?.Invoke(this, EventArgs.Empty);
 }
Exemplo n.º 5
0
 protected void OnReportviewer1ReportPrinted(object sender, EventArgs e)
 {
     ReportPrinted?.Invoke(this, EventArgs.Empty);
 }