MESCIUS.ActiveReports Assembly / GrapeCity.ActiveReports.Document Namespace / SectionDocument Class / PrintAborted Event
Example

In This Topic
PrintAborted Event (SectionDocument)
In This Topic
Occurs when the printing of the document pages is canceled.
Syntax
'Declaration
 
Public Event PrintAborted As PrintAbortedEventHandler
 
Example
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();
}
See Also