void HandlePrintEndPrint(object o, EndPrintArgs args) { ReportPrinted?.Invoke(this, EventArgs.Empty); printing.BeginPrint -= HandlePrintBeginPrint; printing.DrawPage -= HandlePrintDrawPage; printing.EndPrint -= HandlePrintEndPrint; printing.Dispose(); }
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 })); }
void HandlePrintEndPrint(object o, EndPrintArgs args) { ReportPrinted?.Invoke(this, EventArgs.Empty); }
public void RiseReportPrinted() { ReportPrinted?.Invoke(this, EventArgs.Empty); }
protected void OnReportviewer1ReportPrinted(object sender, EventArgs e) { ReportPrinted?.Invoke(this, EventArgs.Empty); }