[]
Occurs when the printing of the document pages is canceled.
public event PrintAbortedEventHandler PrintAborted
Type | Description |
---|---|
PrintAbortedEventHandler | Occurs when the printing of the document pages is canceled. |
private GrapeCity.ActiveReports.SectionReport sectionReport = new GrapeCity.ActiveReports.SectionReport();
private bool isCancelled = false;
private void button_Click(object sender, RoutedEventArgs e)
{
sectionReport.Document.PrintAborted += (sender, e) =>
{
isCancelled = true;
};
//To call the Print method, add a reference to Viewer.Win or Viewer.WPF
sectionReport.Document.Print();
}