# GrapeCity.ActiveReports.PrinterSettings

## Content

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



  <h1 id="GrapeCity_ActiveReports_PrinterSettings" data-uid="GrapeCity.ActiveReports.PrinterSettings" class="text-break">PrinterSettings Class
</h1>
  <div class="markdown level0 summary"><p>Manages and applies printer settings for printing reports in ActiveReports.</p>
</div>
  <div class="markdown level0 conceptual"></div>
  <div class="inheritance">
    <h5>Inheritance</h5>
    <div class="level0"><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.object">object</a></div>
    <div class="level1"><span class="xref">PrinterSettings</span></div>
  </div>
  <div class="implements">
    <h5>Implements</h5>
    <div><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.idisposable">IDisposable</a></div>
  </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_syntax">Syntax</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public sealed class PrinterSettings : IDisposable</code></pre>
  </div>
  <h5 id="GrapeCity_ActiveReports_PrinterSettings_remarks"><strong>Remarks</strong></h5>
  <div class="markdown level0 remarks"><pre><code>&lt;p&gt;The &lt;xref href=&quot;GrapeCity.ActiveReports.PrinterSettings&quot; data-throw-if-not-resolved=&quot;false&quot;&gt;&lt;/xref&gt; class provides a comprehensive interface for configuring printer settings specific to the needs of printing reports 
</code></pre>
<p>generated by ActiveReports. It includes options for selecting printers, defining print options, and controlling the print dialog and progress dialog
visibility.</p>
<p>This class also supports disposing of resources, making it critical to ensure proper resource management, especially in applications that create multiple
instances for different print jobs.</p>
<p>Instances of this class can be created directly for default printing scenarios or can be initialized with specific reports, printers, and print options
for customized printing workflows.</p>
</div>
  <h5 id="GrapeCity_ActiveReports_PrinterSettings_examples"><strong>Examples</strong></h5>
  <p>This example demonstrates how to create a <a class="xref" href="GrapeCity.ActiveReports.PrinterSettings.html">PrinterSettings</a> instance and configure it for printing a report:</p>
<pre><code class="lang-csharp">// Load the report
var reportPath = @"C:\path\to\your\report\SalesReport.rdlx";
var report = new GrapeCity.ActiveReports.PageReport(new System.IO.FileInfo(reportPath));
// Create a new instance of PrinterSettings for the specific report
var printerSettings = new GrapeCity.ActiveReports.PrinterSettings(report.Report);
// Configure printer settings
printerSettings.ShowPrintDialog = true;
// Print the report
// Note: Actual printing code would go here, using the configured printerSettings</code></pre>

  <h3 id="constructors">Constructors
</h3>
  <table class="table table-bordered table-condensed">
    <thead>
      <tr>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td id="GrapeCity_ActiveReports_PrinterSettings__ctor" data-uid="GrapeCity.ActiveReports.PrinterSettings.#ctor">
          <a class="xref" href="GrapeCity.ActiveReports.PrinterSettings.-ctor.html#GrapeCity_ActiveReports_PrinterSettings__ctor">PrinterSettings()</a>
        </td>
        <td class="markdown level1 summary"><p>Creates a new instance of PrinterSettings with default print options.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_ActiveReports_PrinterSettings__ctor_GrapeCity_ActiveReports_PageReportModel_Report_System_String_" data-uid="GrapeCity.ActiveReports.PrinterSettings.#ctor(GrapeCity.ActiveReports.PageReportModel.Report,System.String)">
          <a class="xref" href="GrapeCity.ActiveReports.PrinterSettings.-ctor.html#GrapeCity_ActiveReports_PrinterSettings__ctor_GrapeCity_ActiveReports_PageReportModel_Report_System_String_">PrinterSettings(Report, string)</a>
        </td>
        <td class="markdown level1 summary"><p>Creates a new instance of PrinterSettings for a specific report.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_ActiveReports_PrinterSettings__ctor_GrapeCity_ActiveReports_Win_Printing_Printer_GrapeCity_ActiveReports_Printing_PrintOptions_" data-uid="GrapeCity.ActiveReports.PrinterSettings.#ctor(GrapeCity.ActiveReports.Win.Printing.Printer,GrapeCity.ActiveReports.Printing.PrintOptions)">
          <a class="xref" href="GrapeCity.ActiveReports.PrinterSettings.-ctor.html#GrapeCity_ActiveReports_PrinterSettings__ctor_GrapeCity_ActiveReports_Win_Printing_Printer_GrapeCity_ActiveReports_Printing_PrintOptions_">PrinterSettings(Printer, PrintOptions)</a>
        </td>
        <td class="markdown level1 summary"><p>Creates a new instance of PrinterSettings with a specific printer and print options.</p>
</td>
      </tr>
    </tbody>
  </table>
  <h3 id="properties">Properties
</h3>
  <table class="table table-bordered table-condensed">
    <thead>
      <tr>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td id="GrapeCity_ActiveReports_PrinterSettings_PrintOptions" data-uid="GrapeCity.ActiveReports.PrinterSettings.PrintOptions">
          <a class="xref" href="GrapeCity.ActiveReports.PrinterSettings.PrintOptions.html#GrapeCity_ActiveReports_PrinterSettings_PrintOptions">PrintOptions</a>
        </td>
        <td class="markdown level1 summary"><p>Gets the <a class="xref" href="../MESCIUS.ActiveReports/GrapeCity.ActiveReports.Printing.PrintOptions.html">PrintOptions</a> instance associated with this printer settings.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_ActiveReports_PrinterSettings_Printer" data-uid="GrapeCity.ActiveReports.PrinterSettings.Printer">
          <a class="xref" href="GrapeCity.ActiveReports.PrinterSettings.Printer.html#GrapeCity_ActiveReports_PrinterSettings_Printer">Printer</a>
        </td>
        <td class="markdown level1 summary"><p>Gets the printer instance.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_ActiveReports_PrinterSettings_ShowPrintDialog" data-uid="GrapeCity.ActiveReports.PrinterSettings.ShowPrintDialog">
          <a class="xref" href="GrapeCity.ActiveReports.PrinterSettings.ShowPrintDialog.html#GrapeCity_ActiveReports_PrinterSettings_ShowPrintDialog">ShowPrintDialog</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets a value indicating whether the print dialog is displayed before the printing process starts.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_ActiveReports_PrinterSettings_ShowPrintProgressDialog" data-uid="GrapeCity.ActiveReports.PrinterSettings.ShowPrintProgressDialog">
          <a class="xref" href="GrapeCity.ActiveReports.PrinterSettings.ShowPrintProgressDialog.html#GrapeCity_ActiveReports_PrinterSettings_ShowPrintProgressDialog">ShowPrintProgressDialog</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets a value indicating whether the print progress dialog is displayed during the printing process.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_ActiveReports_PrinterSettings_UsePrintingThread" data-uid="GrapeCity.ActiveReports.PrinterSettings.UsePrintingThread">
          <a class="xref" href="GrapeCity.ActiveReports.PrinterSettings.UsePrintingThread.html#GrapeCity_ActiveReports_PrinterSettings_UsePrintingThread">UsePrintingThread</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets a value indicating whether the printing process should be executed on a separate thread.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_ActiveReports_PrinterSettings_UseStandardDialog" data-uid="GrapeCity.ActiveReports.PrinterSettings.UseStandardDialog">
          <a class="xref" href="GrapeCity.ActiveReports.PrinterSettings.UseStandardDialog.html#GrapeCity_ActiveReports_PrinterSettings_UseStandardDialog">UseStandardDialog</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets a value indicating whether the standard print dialog should be used.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_ActiveReports_PrinterSettings_UseXpDialog" data-uid="GrapeCity.ActiveReports.PrinterSettings.UseXpDialog">
          <a class="xref" href="GrapeCity.ActiveReports.PrinterSettings.UseXpDialog.html#GrapeCity_ActiveReports_PrinterSettings_UseXpDialog">UseXpDialog</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets a value indicating whether the XP style print dialog should be used.</p>
</td>
      </tr>
    </tbody>
  </table>
  <h3 id="methods">Methods
</h3>
  <table class="table table-bordered table-condensed">
    <thead>
      <tr>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td id="GrapeCity_ActiveReports_PrinterSettings_Dispose" data-uid="GrapeCity.ActiveReports.PrinterSettings.Dispose">
          <a class="xref" href="GrapeCity.ActiveReports.PrinterSettings.Dispose.html#GrapeCity_ActiveReports_PrinterSettings_Dispose">Dispose()</a>
        </td>
        <td class="markdown level1 summary"><p>Disposes the printer settings and associated resources.</p>
</td>
      </tr>
    </tbody>
  </table>
  <h3 id="events">Events
</h3>
  <table class="table table-bordered table-condensed">
    <thead>
      <tr>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td id="GrapeCity_ActiveReports_PrinterSettings_PrintAborted" data-uid="GrapeCity.ActiveReports.PrinterSettings.PrintAborted">
          <a class="xref" href="GrapeCity.ActiveReports.PrinterSettings.PrintAborted.html">PrintAborted</a>
        </td>
        <td class="markdown level1 summary"><p>Occurs when the printing process is aborted.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_ActiveReports_PrinterSettings_PrintProgress" data-uid="GrapeCity.ActiveReports.PrinterSettings.PrintProgress">
          <a class="xref" href="GrapeCity.ActiveReports.PrinterSettings.PrintProgress.html">PrintProgress</a>
        </td>
        <td class="markdown level1 summary"><p>Occurs when there is a change in the printing progress.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_ActiveReports_PrinterSettings_PrintingThreadErrorEvent" data-uid="GrapeCity.ActiveReports.PrinterSettings.PrintingThreadErrorEvent">
          <a class="xref" href="GrapeCity.ActiveReports.PrinterSettings.PrintingThreadErrorEvent.html">PrintingThreadErrorEvent</a>
        </td>
        <td class="markdown level1 summary"><p>Occurs when an unhandled exception is thrown in the printing thread.</p>
</td>
      </tr>
    </tbody>
  </table>
  <h3 id="seealso">See Also</h3>
  <div class="seealso">
      <div><a class="xref" href="../MESCIUS.ActiveReports/GrapeCity.ActiveReports.Printing.PrintOptions.html">PrintOptions</a></div>
      <div><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.idisposable">IDisposable</a></div>
  </div>

</div>
