'Declaration Public Event PrintAborted As PrintAbortedEventHandler
public event PrintAbortedEventHandler PrintAborted
'Declaration Public Event PrintAborted As PrintAbortedEventHandler
public event PrintAbortedEventHandler PrintAborted
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(); }