# C1.C1Preview.C1PrintDocument.PrintDialog

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="C1_C1Preview_C1PrintDocument_PrintDialog_" data-uid="C1.C1Preview.C1PrintDocument.PrintDialog*">PrintDialog Method
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="C1_C1Preview_C1PrintDocument_PrintDialog_" data-uid="C1.C1Preview.C1PrintDocument.PrintDialog*"></a>
<h4 id="C1_C1Preview_C1PrintDocument_PrintDialog" data-uid="C1.C1Preview.C1PrintDocument.PrintDialog">PrintDialog()</h4>
<div class="markdown level1 summary"><p>Shows the standard print dialog, allowing the user to print the current document.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public bool PrintDialog()</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Function PrintDialog() As Boolean</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="https://learn.microsoft.com/dotnet/api/system.boolean">bool</a></td>
      <td><p><b>true</b> if the document was printed, <b>false</b> otherwise.</p>
</td>
    </tr>
  </tbody>
</table>


<a id="C1_C1Preview_C1PrintDocument_PrintDialog_" data-uid="C1.C1Preview.C1PrintDocument.PrintDialog*"></a>
<h4 id="C1_C1Preview_C1PrintDocument_PrintDialog_System_Drawing_Printing_PrinterSettings_System_Int32___System_Boolean_" data-uid="C1.C1Preview.C1PrintDocument.PrintDialog(System.Drawing.Printing.PrinterSettings,System.Int32[],System.Boolean)">PrintDialog(PrinterSettings, int[], bool)</h4>
<div class="markdown level1 summary"><p>Shows the standard print dialog, allowing the user to print the current document.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public bool PrintDialog(PrinterSettings printerSettings, int[] selectedPageNumbers, bool showProgress)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Function PrintDialog(printerSettings As PrinterSettings, selectedPageNumbers As Integer(), showProgress As Boolean) As Boolean</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.drawing.printing.printersettings">PrinterSettings</a></td>
      <td><span class="parametername">printerSettings</span></td>
      <td><p>The printer settings to use.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a>[]</td>
      <td><span class="parametername">selectedPageNumbers</span></td>
      <td><p>The list of selected page numbers.
If this parameter is not <b>null</b>, <b>selection</b> option is enabled in the 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">showProgress</span></td>
      <td><p>Indicates whether to show print progress.</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><b>true</b> if the document was printed, <b>false</b> otherwise.</p>
</td>
    </tr>
  </tbody>
</table>
</div>
