# GrapeCity.Wpf.SpreadSheet.GcSpreadSheet.Print

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="GrapeCity_Wpf_SpreadSheet_GcSpreadSheet_Print_" data-uid="GrapeCity.Wpf.SpreadSheet.GcSpreadSheet.Print*">Print Method
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="GrapeCity_Wpf_SpreadSheet_GcSpreadSheet_Print_" data-uid="GrapeCity.Wpf.SpreadSheet.GcSpreadSheet.Print*"></a>
<h4 id="GrapeCity_Wpf_SpreadSheet_GcSpreadSheet_Print_System_Int32_GrapeCity_Wpf_SpreadSheet_Printing_PrintSettings_System_Boolean_" data-uid="GrapeCity.Wpf.SpreadSheet.GcSpreadSheet.Print(System.Int32,GrapeCity.Wpf.SpreadSheet.Printing.PrintSettings,System.Boolean)">Print(int, PrintSettings, bool)</h4>
<div class="markdown level1 summary"><p>Prints the <a class="xref" href="GrapeCity.Wpf.SpreadSheet.GcSpreadSheet.html">GcSpreadSheet</a>.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public void Print(int sheetIndex = -1, PrintSettings printSettings = null, bool showDialog = false)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub Print(Optional sheetIndex As Integer = -1, Optional printSettings As PrintSettings = Nothing, Optional showDialog As Boolean = False)</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.int32">int</a></td>
      <td><span class="parametername">sheetIndex</span></td>
      <td><p>An integer value indicates the printing worksheet. The default value <code>-1</code> means the entire workbook is printed.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="GrapeCity.Wpf.SpreadSheet.Printing.PrintSettings.html">PrintSettings</a></td>
      <td><span class="parametername">printSettings</span></td>
      <td><p>The print settings.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.boolean">bool</a></td>
      <td><span class="parametername">showDialog</span></td>
      <td><p><code>true</code> to show the print dialog; otherwise, <code>false</code>.</p>
</td>
    </tr>
  </tbody>
</table>
</div>
