# FarPoint.Win.Spread.FpSpread.PrintSheet

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="FarPoint_Win_Spread_FpSpread_PrintSheet_" data-uid="FarPoint.Win.Spread.FpSpread.PrintSheet*">PrintSheet Method
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="FarPoint_Win_Spread_FpSpread_PrintSheet_" data-uid="FarPoint.Win.Spread.FpSpread.PrintSheet*"></a>
<h4 id="FarPoint_Win_Spread_FpSpread_PrintSheet_System_Int32_" data-uid="FarPoint.Win.Spread.FpSpread.PrintSheet(System.Int32)">PrintSheet(int)</h4>
<div class="markdown level1 summary"><p>Handles the printing of the specified sheet in a separate thread.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public void PrintSheet(int sheet)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub PrintSheet(sheet As Integer)</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>Index of sheet to print; -1 for all sheets</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.argumentoutofrangeexception">ArgumentOutOfRangeException</a></td>
      <td><p>Specified sheet index is out of range; must be between 0 and the total number of sheets (or -1 for all sheets)</p>
</td>
    </tr>
  </tbody>
</table>


<a id="FarPoint_Win_Spread_FpSpread_PrintSheet_" data-uid="FarPoint.Win.Spread.FpSpread.PrintSheet*"></a>
<h4 id="FarPoint_Win_Spread_FpSpread_PrintSheet_System_Int32_System_Boolean_" data-uid="FarPoint.Win.Spread.FpSpread.PrintSheet(System.Int32,System.Boolean)">PrintSheet(int, bool)</h4>
<div class="markdown level1 summary"><p>Handles the printing of 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 void PrintSheet(int sheet, bool newThread)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub PrintSheet(sheet As Integer, newThread 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.int32">int</a></td>
      <td><span class="parametername">sheet</span></td>
      <td><p>Index of sheet to print; -1 for all sheets</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.boolean">bool</a></td>
      <td><span class="parametername">newThread</span></td>
      <td><p>True to create a new thread for the print job, or false to print the sheet in the UI thread.</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.argumentoutofrangeexception">ArgumentOutOfRangeException</a></td>
      <td><p>Specified sheet index is out of range; must be between 0 and the total number of sheets (or -1 for all sheets)</p>
</td>
    </tr>
  </tbody>
</table>


<a id="FarPoint_Win_Spread_FpSpread_PrintSheet_" data-uid="FarPoint.Win.Spread.FpSpread.PrintSheet*"></a>
<h4 id="FarPoint_Win_Spread_FpSpread_PrintSheet_System_Int32_System_Boolean_FarPoint_Win_Spread_PrintArea_" data-uid="FarPoint.Win.Spread.FpSpread.PrintSheet(System.Int32,System.Boolean,FarPoint.Win.Spread.PrintArea)">PrintSheet(int, bool, PrintArea)</h4>
<div class="markdown level1 summary"><p>Handles the printing of 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 void PrintSheet(int sheet, bool newThread, PrintArea printArea)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub PrintSheet(sheet As Integer, newThread As Boolean, printArea As PrintArea)</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>Index of sheet to print; -1 for all sheets</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.boolean">bool</a></td>
      <td><span class="parametername">newThread</span></td>
      <td><p>True to create a new thread for the print job, or false to print the sheet in the UI thread.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="FarPoint.Win.Spread.PrintArea.html">PrintArea</a></td>
      <td><span class="parametername">printArea</span></td>
      <td><p>print option</p>
</td>
    </tr>
  </tbody>
</table>


<a id="FarPoint_Win_Spread_FpSpread_PrintSheet_" data-uid="FarPoint.Win.Spread.FpSpread.PrintSheet*"></a>
<h4 id="FarPoint_Win_Spread_FpSpread_PrintSheet_FarPoint_Win_Spread_SheetView_" data-uid="FarPoint.Win.Spread.FpSpread.PrintSheet(FarPoint.Win.Spread.SheetView)">PrintSheet(SheetView)</h4>
<div class="markdown level1 summary"><p>Handles the printing of the specified sheet in a separate thread.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public void PrintSheet(SheetView sheet)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub PrintSheet(sheet As SheetView)</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 to be printed</p>
</td>
    </tr>
  </tbody>
</table>
</div>
