# FarPoint.Win.Spread.FpSpread.ShowPageSetup

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="FarPoint_Win_Spread_FpSpread_ShowPageSetup_" data-uid="FarPoint.Win.Spread.FpSpread.ShowPageSetup*">ShowPageSetup Method
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="FarPoint_Win_Spread_FpSpread_ShowPageSetup_" data-uid="FarPoint.Win.Spread.FpSpread.ShowPageSetup*"></a>
<h4 id="FarPoint_Win_Spread_FpSpread_ShowPageSetup_System_Int32_System_Boolean_System_Boolean_" data-uid="FarPoint.Win.Spread.FpSpread.ShowPageSetup(System.Int32,System.Boolean,System.Boolean)">ShowPageSetup(int, bool, bool)</h4>
<div class="markdown level1 summary"><p>Shows the page setup dialog with the specified buttons for the specified sheet.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public DialogResult ShowPageSetup(int sheet, bool showPrintButton, bool showPreviewButton)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Function ShowPageSetup(sheet As Integer, showPrintButton As Boolean, showPreviewButton As Boolean) As DialogResult</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">sheet</span></td>
      <td><p>Sheet index</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.boolean">bool</a></td>
      <td><span class="parametername">showPrintButton</span></td>
      <td><p>Whether to display the Print button</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.boolean">bool</a></td>
      <td><span class="parametername">showPreviewButton</span></td>
      <td><p>Whether to display the Print Preview button</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.windows.forms.dialogresult">DialogResult</a></td>
      <td></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.argumentoutofrangeexception">ArgumentOutOfRangeException</a></td>
      <td><p>Specified sheet index is out of range; must be between 0 and the total number of sheets.</p>
</td>
    </tr>
  </tbody>
</table>


<a id="FarPoint_Win_Spread_FpSpread_ShowPageSetup_" data-uid="FarPoint.Win.Spread.FpSpread.ShowPageSetup*"></a>
<h4 id="FarPoint_Win_Spread_FpSpread_ShowPageSetup_FarPoint_Win_Spread_SheetView_System_Boolean_System_Boolean_" data-uid="FarPoint.Win.Spread.FpSpread.ShowPageSetup(FarPoint.Win.Spread.SheetView,System.Boolean,System.Boolean)">ShowPageSetup(SheetView, bool, bool)</h4>
<div class="markdown level1 summary"><p>Shows the page setup dialog with the specified buttons for the specified sheet.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public DialogResult ShowPageSetup(SheetView sheet, bool showPrintButton, bool showPreviewButton)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Function ShowPageSetup(sheet As SheetView, showPrintButton As Boolean, showPreviewButton As Boolean) As DialogResult</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="FarPoint.Win.Spread.SheetView.html">SheetView</a></td>
      <td><span class="parametername">sheet</span></td>
      <td><p>Sheet</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.boolean">bool</a></td>
      <td><span class="parametername">showPrintButton</span></td>
      <td><p>Whether to display the Print button</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.boolean">bool</a></td>
      <td><span class="parametername">showPreviewButton</span></td>
      <td><p>Whether to display the Print Preview button</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.windows.forms.dialogresult">DialogResult</a></td>
      <td></td>
    </tr>
  </tbody>
</table>
</div>
