# GrapeCity.ActiveReports.Viewer.Wpf.Viewer.Print

## Content

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



<h1 id="GrapeCity_ActiveReports_Viewer_Wpf_Viewer_Print_" data-uid="GrapeCity.ActiveReports.Viewer.Wpf.Viewer.Print*">Print Method
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="GrapeCity_ActiveReports_Viewer_Wpf_Viewer_Print_" data-uid="GrapeCity.ActiveReports.Viewer.Wpf.Viewer.Print*"></a>
<h4 id="GrapeCity_ActiveReports_Viewer_Wpf_Viewer_Print_System_Boolean_" data-uid="GrapeCity.ActiveReports.Viewer.Wpf.Viewer.Print(System.Boolean)">Print(bool)</h4>
<div class="markdown level1 summary"><p>Prints the currently opened report.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public bool Print(bool showPrintDialog)</code></pre>
</div>
<h5 class="parameters">Parameters</h5>
<table class="table table-bordered table-condensed">
  <thead>
    <tr>
      <th>Type</th>
      <th>Name</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><span class="parametername">showPrintDialog</span></td>
      <td><p>A boolean value indicating whether to show the print dialog before printing.</p>
</td>
    </tr>
  </tbody>
</table>
<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="https://learn.microsoft.com/dotnet/api/system.boolean">bool</a></td>
      <td><p><code>true</code> if the print was successful; otherwise, <code>false</code>.</p>
</td>
    </tr>
  </tbody>
</table>
<h5 class="exceptions">Exceptions</h5>
<table class="table table-bordered table-condensed">
  <thead>
    <tr>
      <th>Type</th>
      <th>Condition</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.invalidoperationexception">InvalidOperationException</a></td>
      <td><p>Thrown if the report is not fully loaded.</p>
</td>
    </tr>
  </tbody>
</table>


<a id="GrapeCity_ActiveReports_Viewer_Wpf_Viewer_Print_" data-uid="GrapeCity.ActiveReports.Viewer.Wpf.Viewer.Print*"></a>
<h4 id="GrapeCity_ActiveReports_Viewer_Wpf_Viewer_Print_System_Boolean_System_Boolean_" data-uid="GrapeCity.ActiveReports.Viewer.Wpf.Viewer.Print(System.Boolean,System.Boolean)">Print(bool, bool)</h4>
<div class="markdown level1 summary"><p>Prints the currently opened report.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public bool Print(bool showPrintDialog, bool showPrintProgressDialog)</code></pre>
</div>
<h5 class="parameters">Parameters</h5>
<table class="table table-bordered table-condensed">
  <thead>
    <tr>
      <th>Type</th>
      <th>Name</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><span class="parametername">showPrintDialog</span></td>
      <td><p>A boolean value indicating whether to show the print dialog before printing.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.boolean">bool</a></td>
      <td><span class="parametername">showPrintProgressDialog</span></td>
      <td><p>A boolean value indicating whether to show the print progress dialog.</p>
</td>
    </tr>
  </tbody>
</table>
<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="https://learn.microsoft.com/dotnet/api/system.boolean">bool</a></td>
      <td><p><code>true</code> if the print was successful; otherwise, <code>false</code>.</p>
</td>
    </tr>
  </tbody>
</table>
<h5 class="exceptions">Exceptions</h5>
<table class="table table-bordered table-condensed">
  <thead>
    <tr>
      <th>Type</th>
      <th>Condition</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.invalidoperationexception">InvalidOperationException</a></td>
      <td><p>Thrown if the report is not fully loaded.</p>
</td>
    </tr>
  </tbody>
</table>


<a id="GrapeCity_ActiveReports_Viewer_Wpf_Viewer_Print_" data-uid="GrapeCity.ActiveReports.Viewer.Wpf.Viewer.Print*"></a>
<h4 id="GrapeCity_ActiveReports_Viewer_Wpf_Viewer_Print_System_Boolean_System_Boolean_System_Boolean_" data-uid="GrapeCity.ActiveReports.Viewer.Wpf.Viewer.Print(System.Boolean,System.Boolean,System.Boolean)">Print(bool, bool, bool)</h4>
<div class="markdown level1 summary"><p>Prints the currently opened report.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public bool Print(bool showPrintDialog, bool showPrintProgressDialog, bool usePrintingThread)</code></pre>
</div>
<h5 class="parameters">Parameters</h5>
<table class="table table-bordered table-condensed">
  <thead>
    <tr>
      <th>Type</th>
      <th>Name</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><span class="parametername">showPrintDialog</span></td>
      <td><p>A boolean value indicating whether to show the print dialog before printing.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.boolean">bool</a></td>
      <td><span class="parametername">showPrintProgressDialog</span></td>
      <td><p>A boolean value indicating whether to show the print progress dialog.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.boolean">bool</a></td>
      <td><span class="parametername">usePrintingThread</span></td>
      <td><p>A boolean value indicating whether to use a separate thread for printing.</p>
</td>
    </tr>
  </tbody>
</table>
<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="https://learn.microsoft.com/dotnet/api/system.boolean">bool</a></td>
      <td><p><code>true</code> if the print was successful; otherwise, <code>false</code>.</p>
</td>
    </tr>
  </tbody>
</table>
<h5 class="exceptions">Exceptions</h5>
<table class="table table-bordered table-condensed">
  <thead>
    <tr>
      <th>Type</th>
      <th>Condition</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.invalidoperationexception">InvalidOperationException</a></td>
      <td><p>Thrown if the report is not fully loaded.</p>
</td>
    </tr>
  </tbody>
</table>


<a id="GrapeCity_ActiveReports_Viewer_Wpf_Viewer_Print_" data-uid="GrapeCity.ActiveReports.Viewer.Wpf.Viewer.Print*"></a>
<h4 id="GrapeCity_ActiveReports_Viewer_Wpf_Viewer_Print_GrapeCity_Viewer_Common_PrintingSettings_" data-uid="GrapeCity.ActiveReports.Viewer.Wpf.Viewer.Print(GrapeCity.Viewer.Common.PrintingSettings)">Print(PrintingSettings)</h4>
<div class="markdown level1 summary"><p>Prints the currently opened report.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public bool Print(PrintingSettings settings)</code></pre>
</div>
<h5 class="parameters">Parameters</h5>
<table class="table table-bordered table-condensed">
  <thead>
    <tr>
      <th>Type</th>
      <th>Name</th>
      <th>Description</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td><a class="xref" href="../MESCIUS.ActiveReports.Viewer.Common/GrapeCity.Viewer.Common.PrintingSettings.html">PrintingSettings</a></td>
      <td><span class="parametername">settings</span></td>
      <td><p>The printing settings to use.</p>
</td>
    </tr>
  </tbody>
</table>
<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="https://learn.microsoft.com/dotnet/api/system.boolean">bool</a></td>
      <td><p><code>true</code> if the print was successful; otherwise, <code>false</code>.</p>
</td>
    </tr>
  </tbody>
</table>
<h5 class="exceptions">Exceptions</h5>
<table class="table table-bordered table-condensed">
  <thead>
    <tr>
      <th>Type</th>
      <th>Condition</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.invalidoperationexception">InvalidOperationException</a></td>
      <td><p>Thrown if the report is not fully loaded.</p>
</td>
    </tr>
  </tbody>
</table>
</div>
