# GrapeCity.Wpf.SpreadSheet.Dialogs.BuiltInDialogs.PrintPreview

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="GrapeCity_Wpf_SpreadSheet_Dialogs_BuiltInDialogs_PrintPreview_" data-uid="GrapeCity.Wpf.SpreadSheet.Dialogs.BuiltInDialogs.PrintPreview*">PrintPreview Method
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="GrapeCity_Wpf_SpreadSheet_Dialogs_BuiltInDialogs_PrintPreview_" data-uid="GrapeCity.Wpf.SpreadSheet.Dialogs.BuiltInDialogs.PrintPreview*"></a>
<h4 id="GrapeCity_Wpf_SpreadSheet_Dialogs_BuiltInDialogs_PrintPreview_GrapeCity_Wpf_SpreadSheet_GcSpreadSheet_System_Int32_GrapeCity_Wpf_SpreadSheet_Printing_PrintSettings_" data-uid="GrapeCity.Wpf.SpreadSheet.Dialogs.BuiltInDialogs.PrintPreview(GrapeCity.Wpf.SpreadSheet.GcSpreadSheet,System.Int32,GrapeCity.Wpf.SpreadSheet.Printing.PrintSettings)">PrintPreview(GcSpreadSheet, int, PrintSettings)</h4>
<div class="markdown level1 summary"><p>Gets a separate application window in which end users can preview the printing output.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public static IDialog PrintPreview(GcSpreadSheet spread, int sheetIndex = -1, PrintSettings printSettings = null)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Shared Function PrintPreview(spread As GcSpreadSheet, Optional sheetIndex As Integer = -1, Optional printSettings As PrintSettings = Nothing) As IDialog</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="GrapeCity.Wpf.SpreadSheet.GcSpreadSheet.html">GcSpreadSheet</a></td>
      <td><span class="parametername">spread</span></td>
      <td><p>The <a class="xref" href="GrapeCity.Wpf.SpreadSheet.GcSpreadSheet.html">GcSpreadSheet</a> control to work with.</p>
</td>
    </tr>
    <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>
  </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="GrapeCity.Wpf.SpreadSheet.Dialogs.IDialog.html">IDialog</a></td>
      <td></td>
    </tr>
  </tbody>
</table>
</div>
