# GrapeCity.ActiveReports.PrinterSettings.PrintAborted

## Content

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




<h1 id="GrapeCity_ActiveReports_PrinterSettings_PrintAborted" data-uid="GrapeCity.ActiveReports.PrinterSettings.PrintAborted" class="text-break">PrintAborted Event
</h1>
<div class="markdown level0 summary"><p>Occurs when the printing process is aborted.</p>
</div>
<div class="markdown level0 conceptual"></div>
<h6><strong>Namespace</strong>: <a class="xref" href="GrapeCity.ActiveReports.html">GrapeCity.ActiveReports</a></h6>
<h6><strong>Assembly</strong>: MESCIUS.ActiveReports.Viewer.Common.dll</h6>
<h5 id="GrapeCity_ActiveReports_PrinterSettings_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="../MESCIUS.ActiveReports/GrapeCity.ActiveReports.Printing.PrintAbortedEventHandler.html">PrintAbortedEventHandler</a></td>
      <td>Occurs when the printing process is aborted.</td>
    </tr>
  </tbody>
</table>
<h5 id="GrapeCity_ActiveReports_PrinterSettings_PrintAborted_remarks"><strong>Remarks</strong></h5>
<div class="markdown level0 remarks"><p>This event is raised if the printing process is aborted for any reason, such as by user action or a printing error that prevents the completion of
the print job. Subscribing to this event allows the application to respond appropriately when a print job does not complete successfully,
such as by notifying the user, logging the incident, or attempting to restart the printing process.</p>
</div>
<h5 id="GrapeCity_ActiveReports_PrinterSettings_PrintAborted_examples"><strong>Examples</strong></h5>
<p>This example demonstrates how to subscribe to the <a class="xref" href="GrapeCity.ActiveReports.PrinterSettings.PrintAborted.html">PrintAborted</a> event and handle it:</p>
<pre><code class="lang-csharp">GrapeCity.ActiveReports.PrinterSettings printerSettings = new GrapeCity.ActiveReports.PrinterSettings();
printerSettings.PrintAborted += PrinterSettings_PrintAborted;
private void PrinterSettings_PrintAborted(object sender, EventArgs e)
{
    Console.WriteLine("The printing process has been aborted.");
    // Additional logic to handle the aborted print job can be added here
}</code></pre>

</div>
