# GrapeCity.ActiveReports.Document.SectionDocument.PrintAborted

## Content

<div class="doc-site-dotnet-api-container">




<h1 id="GrapeCity_ActiveReports_Document_SectionDocument_PrintAborted" data-uid="GrapeCity.ActiveReports.Document.SectionDocument.PrintAborted" class="text-break">PrintAborted Event
</h1>
<div class="markdown level0 summary"><p>Occurs when the printing of the document pages is canceled.</p>
</div>
<div class="markdown level0 conceptual"></div>
<h6><strong>Namespace</strong>: <a class="xref" href="GrapeCity.ActiveReports.Document.html">GrapeCity.ActiveReports.Document</a></h6>
<h6><strong>Assembly</strong>: MESCIUS.ActiveReports.dll</h6>
<h5 id="GrapeCity_ActiveReports_Document_SectionDocument_PrintAborted_syntax">Syntax</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public event PrintAbortedEventHandler PrintAborted</code></pre>
</div>
<h5 class="returns">Returns</h5>
<table class="table table-bordered table-condensed">
  <thead>
    <tr>
      <th>Type</th>
      <th>Description</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td><a class="xref" href="GrapeCity.ActiveReports.Printing.PrintAbortedEventHandler.html">PrintAbortedEventHandler</a></td>
      <td>Occurs when the printing of the document pages is canceled.</td>
    </tr>
  </tbody>
</table>
<h5 id="GrapeCity_ActiveReports_Document_SectionDocument_PrintAborted_examples"><strong>Examples</strong></h5>
<pre><code class="lang-csharp">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) =&gt;
	{
		isCancelled = true;
	};
	//To call the Print method, add a reference to Viewer.Win or Viewer.WPF
	sectionReport.Document.Print();
}</code></pre>

</div>
