# GrapeCity.ActiveReports.PrinterSettings.UsePrintingThread

## Content

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



<h1 id="GrapeCity_ActiveReports_PrinterSettings_UsePrintingThread_" data-uid="GrapeCity.ActiveReports.PrinterSettings.UsePrintingThread*">UsePrintingThread Property
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="GrapeCity_ActiveReports_PrinterSettings_UsePrintingThread_" data-uid="GrapeCity.ActiveReports.PrinterSettings.UsePrintingThread*"></a>
<h4 id="GrapeCity_ActiveReports_PrinterSettings_UsePrintingThread" data-uid="GrapeCity.ActiveReports.PrinterSettings.UsePrintingThread">UsePrintingThread</h4>
<div class="markdown level1 summary"><p>Gets or sets a value indicating whether the printing process should be executed on a separate thread.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public bool UsePrintingThread { get; set; }</code></pre>
</div>
<h5 class="propertyValue">Property Value</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="https://learn.microsoft.com/dotnet/api/system.boolean">bool</a></td>
      <td><p><code>true</code> if the printing process should be executed on a separate thread; otherwise, <code>false</code>. The default value is <code>true</code>.</p>
</td>
    </tr>
  </tbody>
</table>
<h5 id="GrapeCity_ActiveReports_PrinterSettings_UsePrintingThread_remarks">Remarks</h5>
<div class="markdown level1 remarks"><p>Utilizing a separate thread for the printing process can enhance the responsiveness of the user interface during long-running print jobs.
When set to <code>true</code>, this property enables asynchronous printing, allowing the main application thread to remain responsive to user actions
while the printing operation is executed in the background.
Setting this property to <code>false</code> causes the printing process to run synchronously on the main application thread. This may be necessary in
certain scenarios where printing operations need to be closely synchronized with other UI operations or when using printing components that do not
support multithreaded execution.
It is recommended to test the printing functionality in your specific application context to determine the most appropriate setting for this property.</p>
</div>
<h5 id="GrapeCity_ActiveReports_PrinterSettings_UsePrintingThread_examples">Examples</h5>
<p>This example demonstrates how to disable the use of a separate printing thread for synchronous printing:</p>
<pre><code class="lang-csharp">var printerSettings = new GrapeCity.ActiveReports.PrinterSettings();
printerSettings.UsePrintingThread = false;
// Proceed with printing operations</code></pre>

</div>
