# FarPoint.Web.Spread.FpSpread.SaveExcel

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="FarPoint_Web_Spread_FpSpread_SaveExcel_" data-uid="FarPoint.Web.Spread.FpSpread.SaveExcel*">SaveExcel Method
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="FarPoint_Web_Spread_FpSpread_SaveExcel_" data-uid="FarPoint.Web.Spread.FpSpread.SaveExcel*"></a>
<h4 id="FarPoint_Web_Spread_FpSpread_SaveExcel_System_IO_Stream_" data-uid="FarPoint.Web.Spread.FpSpread.SaveExcel(System.IO.Stream)">SaveExcel(Stream)</h4>
<div class="markdown level1 summary"><p>Saves the contents of the Spread component to the specified Excel file in a stream.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public bool SaveExcel(Stream stream)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Function SaveExcel(stream As Stream) 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.io.stream">Stream</a></td>
      <td><span class="parametername">stream</span></td>
      <td><p>Stream to save the file to as an Excel Compound Storage file</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></td>
    </tr>
  </tbody>
</table>


<a id="FarPoint_Web_Spread_FpSpread_SaveExcel_" data-uid="FarPoint.Web.Spread.FpSpread.SaveExcel*"></a>
<h4 id="FarPoint_Web_Spread_FpSpread_SaveExcel_System_IO_Stream_System_String_" data-uid="FarPoint.Web.Spread.FpSpread.SaveExcel(System.IO.Stream,System.String)">SaveExcel(Stream, string)</h4>
<div class="markdown level1 summary"><p>Saves the contents of the Spread component to the specified Excel file in a stream.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public bool SaveExcel(Stream stream, string password)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Function SaveExcel(stream As Stream, password As String) 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.io.stream">Stream</a></td>
      <td><span class="parametername">stream</span></td>
      <td><p>Stream to save the file to as an Excel Compound Storage file</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.string">string</a></td>
      <td><span class="parametername">password</span></td>
      <td><p>Password of file</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></td>
    </tr>
  </tbody>
</table>


<a id="FarPoint_Web_Spread_FpSpread_SaveExcel_" data-uid="FarPoint.Web.Spread.FpSpread.SaveExcel*"></a>
<h4 id="FarPoint_Web_Spread_FpSpread_SaveExcel_System_IO_Stream_FarPoint_Excel_ExcelWarningList_" data-uid="FarPoint.Web.Spread.FpSpread.SaveExcel(System.IO.Stream,FarPoint.Excel.ExcelWarningList)">SaveExcel(Stream, ExcelWarningList)</h4>
<div class="markdown level1 summary"><p>Saves the contents of the Spread component to the specified Excel file in a stream keeping track of warnings.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public bool SaveExcel(Stream stream, ExcelWarningList warningList)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Function SaveExcel(stream As Stream, warningList As ExcelWarningList) 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.io.stream">Stream</a></td>
      <td><span class="parametername">stream</span></td>
      <td><p>Stream to save the file to as an Excel Compound Storage file</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="../FarPoint.Excel/FarPoint.Excel.ExcelWarningList.html">ExcelWarningList</a></td>
      <td><span class="parametername">warningList</span></td>
      <td><p>List of warning messages that occur during this operation</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></td>
    </tr>
  </tbody>
</table>


<a id="FarPoint_Web_Spread_FpSpread_SaveExcel_" data-uid="FarPoint.Web.Spread.FpSpread.SaveExcel*"></a>
<h4 id="FarPoint_Web_Spread_FpSpread_SaveExcel_System_IO_Stream_FarPoint_Excel_ExcelSaveFlags_" data-uid="FarPoint.Web.Spread.FpSpread.SaveExcel(System.IO.Stream,FarPoint.Excel.ExcelSaveFlags)">SaveExcel(Stream, ExcelSaveFlags)</h4>
<div class="markdown level1 summary"><p>Saves the contents of the Spread component with the specified parts to the specified Excel file in a stream.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public bool SaveExcel(Stream stream, ExcelSaveFlags saveFlags)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Function SaveExcel(stream As Stream, saveFlags As ExcelSaveFlags) 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.io.stream">Stream</a></td>
      <td><span class="parametername">stream</span></td>
      <td><p>Stream to save the file to as an Excel Compound Storage file</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="../FarPoint.Excel/FarPoint.Excel.ExcelSaveFlags.html">ExcelSaveFlags</a></td>
      <td><span class="parametername">saveFlags</span></td>
      <td><p>Which parts of the spreadsheet to save</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></td>
    </tr>
  </tbody>
</table>


<a id="FarPoint_Web_Spread_FpSpread_SaveExcel_" data-uid="FarPoint.Web.Spread.FpSpread.SaveExcel*"></a>
<h4 id="FarPoint_Web_Spread_FpSpread_SaveExcel_System_IO_Stream_FarPoint_Excel_ExcelSaveFlags_System_String_" data-uid="FarPoint.Web.Spread.FpSpread.SaveExcel(System.IO.Stream,FarPoint.Excel.ExcelSaveFlags,System.String)">SaveExcel(Stream, ExcelSaveFlags, string)</h4>
<div class="markdown level1 summary"><p>Saves the contents of the Spread component with the specified parts to the specified Excel file in a stream.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public bool SaveExcel(Stream stream, ExcelSaveFlags saveFlags, string password)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Function SaveExcel(stream As Stream, saveFlags As ExcelSaveFlags, password As String) 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.io.stream">Stream</a></td>
      <td><span class="parametername">stream</span></td>
      <td><p>Stream to save the file to as an Excel Compound Storage file</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="../FarPoint.Excel/FarPoint.Excel.ExcelSaveFlags.html">ExcelSaveFlags</a></td>
      <td><span class="parametername">saveFlags</span></td>
      <td><p>Which parts of the spreadsheet to save</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.string">string</a></td>
      <td><span class="parametername">password</span></td>
      <td><p>Password of file</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></td>
    </tr>
  </tbody>
</table>


<a id="FarPoint_Web_Spread_FpSpread_SaveExcel_" data-uid="FarPoint.Web.Spread.FpSpread.SaveExcel*"></a>
<h4 id="FarPoint_Web_Spread_FpSpread_SaveExcel_System_IO_Stream_FarPoint_Excel_ExcelSaveFlags_FarPoint_Excel_ExcelWarningList_" data-uid="FarPoint.Web.Spread.FpSpread.SaveExcel(System.IO.Stream,FarPoint.Excel.ExcelSaveFlags,FarPoint.Excel.ExcelWarningList)">SaveExcel(Stream, ExcelSaveFlags, ExcelWarningList)</h4>
<div class="markdown level1 summary"><p>Saves the contents of the Spread component to the specified Excel file
in a stream, keeping track of warnings.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public bool SaveExcel(Stream stream, ExcelSaveFlags saveFlags, ExcelWarningList warningList)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Function SaveExcel(stream As Stream, saveFlags As ExcelSaveFlags, warningList As ExcelWarningList) 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.io.stream">Stream</a></td>
      <td><span class="parametername">stream</span></td>
      <td><p>Stream to save the file to as an Excel Compound Storage file</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="../FarPoint.Excel/FarPoint.Excel.ExcelSaveFlags.html">ExcelSaveFlags</a></td>
      <td><span class="parametername">saveFlags</span></td>
      <td><p>Which parts of the spreadsheet to save</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="../FarPoint.Excel/FarPoint.Excel.ExcelWarningList.html">ExcelWarningList</a></td>
      <td><span class="parametername">warningList</span></td>
      <td><p>List of warning messages that occur during this operation</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></td>
    </tr>
  </tbody>
</table>


<a id="FarPoint_Web_Spread_FpSpread_SaveExcel_" data-uid="FarPoint.Web.Spread.FpSpread.SaveExcel*"></a>
<h4 id="FarPoint_Web_Spread_FpSpread_SaveExcel_System_IO_Stream_FarPoint_Excel_ExcelSaveFlags_FarPoint_Excel_ExcelWarningList_System_String_" data-uid="FarPoint.Web.Spread.FpSpread.SaveExcel(System.IO.Stream,FarPoint.Excel.ExcelSaveFlags,FarPoint.Excel.ExcelWarningList,System.String)">SaveExcel(Stream, ExcelSaveFlags, ExcelWarningList, string)</h4>
<div class="markdown level1 summary"><p>Saves the contents of the Spread component to the specified Excel file
in a stream, keeping track of warnings.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public bool SaveExcel(Stream stream, ExcelSaveFlags saveFlags, ExcelWarningList warningList, string password)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Function SaveExcel(stream As Stream, saveFlags As ExcelSaveFlags, warningList As ExcelWarningList, password As String) 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.io.stream">Stream</a></td>
      <td><span class="parametername">stream</span></td>
      <td><p>Stream to save the file to as an Excel Compound Storage file</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="../FarPoint.Excel/FarPoint.Excel.ExcelSaveFlags.html">ExcelSaveFlags</a></td>
      <td><span class="parametername">saveFlags</span></td>
      <td><p>Which parts of the spreadsheet to save</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="../FarPoint.Excel/FarPoint.Excel.ExcelWarningList.html">ExcelWarningList</a></td>
      <td><span class="parametername">warningList</span></td>
      <td><p>List of warning messages that occur during this operation</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.string">string</a></td>
      <td><span class="parametername">password</span></td>
      <td><p>Password of file</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></td>
    </tr>
  </tbody>
</table>


<a id="FarPoint_Web_Spread_FpSpread_SaveExcel_" data-uid="FarPoint.Web.Spread.FpSpread.SaveExcel*"></a>
<h4 id="FarPoint_Web_Spread_FpSpread_SaveExcel_System_String_" data-uid="FarPoint.Web.Spread.FpSpread.SaveExcel(System.String)">SaveExcel(string)</h4>
<div class="markdown level1 summary"><p>Saves the contents of the Spread component to Excel in the specified file.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public bool SaveExcel(string fileName)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Function SaveExcel(fileName As String) 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.string">string</a></td>
      <td><span class="parametername">fileName</span></td>
      <td><p>Path and file name of Excel file</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></td>
    </tr>
  </tbody>
</table>


<a id="FarPoint_Web_Spread_FpSpread_SaveExcel_" data-uid="FarPoint.Web.Spread.FpSpread.SaveExcel*"></a>
<h4 id="FarPoint_Web_Spread_FpSpread_SaveExcel_System_String_System_String_" data-uid="FarPoint.Web.Spread.FpSpread.SaveExcel(System.String,System.String)">SaveExcel(string, string)</h4>
<div class="markdown level1 summary"><p>Saves the contents of the Spread component to Excel in the specified file.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public bool SaveExcel(string fileName, string password)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Function SaveExcel(fileName As String, password As String) 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.string">string</a></td>
      <td><span class="parametername">fileName</span></td>
      <td><p>Path and file name of Excel file</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.string">string</a></td>
      <td><span class="parametername">password</span></td>
      <td><p>Password of file</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></td>
    </tr>
  </tbody>
</table>


<a id="FarPoint_Web_Spread_FpSpread_SaveExcel_" data-uid="FarPoint.Web.Spread.FpSpread.SaveExcel*"></a>
<h4 id="FarPoint_Web_Spread_FpSpread_SaveExcel_System_String_FarPoint_Excel_ExcelWarningList_" data-uid="FarPoint.Web.Spread.FpSpread.SaveExcel(System.String,FarPoint.Excel.ExcelWarningList)">SaveExcel(string, ExcelWarningList)</h4>
<div class="markdown level1 summary"><p>Saves the contents of the Spread component to Excel in the specified file
keeping track of warnings.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public bool SaveExcel(string fileName, ExcelWarningList warningList)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Function SaveExcel(fileName As String, warningList As ExcelWarningList) 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.string">string</a></td>
      <td><span class="parametername">fileName</span></td>
      <td><p>Path and file name of Excel file</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="../FarPoint.Excel/FarPoint.Excel.ExcelWarningList.html">ExcelWarningList</a></td>
      <td><span class="parametername">warningList</span></td>
      <td><p>List of warning messages that occur during this operation</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></td>
    </tr>
  </tbody>
</table>


<a id="FarPoint_Web_Spread_FpSpread_SaveExcel_" data-uid="FarPoint.Web.Spread.FpSpread.SaveExcel*"></a>
<h4 id="FarPoint_Web_Spread_FpSpread_SaveExcel_System_String_FarPoint_Web_Spread_Model_IncludeHeaders_" data-uid="FarPoint.Web.Spread.FpSpread.SaveExcel(System.String,FarPoint.Web.Spread.Model.IncludeHeaders)">SaveExcel(string, IncludeHeaders)</h4>
<div class="markdown level1 summary"><p>Saves the contents of the Spread component to Excel in the specified file
and whether to include headers.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public bool SaveExcel(string fileName, IncludeHeaders includeHeaders)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Function SaveExcel(fileName As String, includeHeaders As IncludeHeaders) 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.string">string</a></td>
      <td><span class="parametername">fileName</span></td>
      <td><p>Path and file name of Excel file</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="FarPoint.Web.Spread.Model.IncludeHeaders.html">IncludeHeaders</a></td>
      <td><span class="parametername">includeHeaders</span></td>
      <td><p>Whether to export the headers as data</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></td>
    </tr>
  </tbody>
</table>


<a id="FarPoint_Web_Spread_FpSpread_SaveExcel_" data-uid="FarPoint.Web.Spread.FpSpread.SaveExcel*"></a>
<h4 id="FarPoint_Web_Spread_FpSpread_SaveExcel_System_String_FarPoint_Web_Spread_Model_IncludeHeaders_FarPoint_Excel_ExcelWarningList_" data-uid="FarPoint.Web.Spread.FpSpread.SaveExcel(System.String,FarPoint.Web.Spread.Model.IncludeHeaders,FarPoint.Excel.ExcelWarningList)">SaveExcel(string, IncludeHeaders, ExcelWarningList)</h4>
<div class="markdown level1 summary"><p>Saves the contents of the Spread component to Excel in the specified file
and whether to include headers and keeps track of warnings.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public bool SaveExcel(string fileName, IncludeHeaders includeHeaders, ExcelWarningList warningList)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Function SaveExcel(fileName As String, includeHeaders As IncludeHeaders, warningList As ExcelWarningList) 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.string">string</a></td>
      <td><span class="parametername">fileName</span></td>
      <td><p>Path and file name of file to save</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="FarPoint.Web.Spread.Model.IncludeHeaders.html">IncludeHeaders</a></td>
      <td><span class="parametername">includeHeaders</span></td>
      <td><p>Whether to export the headers as data</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="../FarPoint.Excel/FarPoint.Excel.ExcelWarningList.html">ExcelWarningList</a></td>
      <td><span class="parametername">warningList</span></td>
      <td><p>List of warning messages that occur during this operation</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></td>
    </tr>
  </tbody>
</table>


<a id="FarPoint_Web_Spread_FpSpread_SaveExcel_" data-uid="FarPoint.Web.Spread.FpSpread.SaveExcel*"></a>
<h4 id="FarPoint_Web_Spread_FpSpread_SaveExcel_System_String_FarPoint_Excel_ExcelSaveFlags_FarPoint_Excel_ExcelWarningList_" data-uid="FarPoint.Web.Spread.FpSpread.SaveExcel(System.String,FarPoint.Excel.ExcelSaveFlags,FarPoint.Excel.ExcelWarningList)">SaveExcel(string, ExcelSaveFlags, ExcelWarningList)</h4>
<div class="markdown level1 summary"><p>Saves the contents of the Spread component with the specified parts to Excel in the specified file
keeping track of warnings.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public bool SaveExcel(string fileName, ExcelSaveFlags excelSaveFlags, ExcelWarningList warningList)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Function SaveExcel(fileName As String, excelSaveFlags As ExcelSaveFlags, warningList As ExcelWarningList) 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.string">string</a></td>
      <td><span class="parametername">fileName</span></td>
      <td><p>Path and file name of file to save</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="../FarPoint.Excel/FarPoint.Excel.ExcelSaveFlags.html">ExcelSaveFlags</a></td>
      <td><span class="parametername">excelSaveFlags</span></td>
      <td><p>Which parts of the spreadsheet to save</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="../FarPoint.Excel/FarPoint.Excel.ExcelWarningList.html">ExcelWarningList</a></td>
      <td><span class="parametername">warningList</span></td>
      <td><p>List of warning messages that occur during this operation</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></td>
    </tr>
  </tbody>
</table>


<a id="FarPoint_Web_Spread_FpSpread_SaveExcel_" data-uid="FarPoint.Web.Spread.FpSpread.SaveExcel*"></a>
<h4 id="FarPoint_Web_Spread_FpSpread_SaveExcel_System_String_FarPoint_Excel_ExcelSaveFlags_FarPoint_Excel_ExcelWarningList_System_String_" data-uid="FarPoint.Web.Spread.FpSpread.SaveExcel(System.String,FarPoint.Excel.ExcelSaveFlags,FarPoint.Excel.ExcelWarningList,System.String)">SaveExcel(string, ExcelSaveFlags, ExcelWarningList, string)</h4>
<div class="markdown level1 summary"><p>Saves the contents of the Spread component with the specified parts to Excel in the specified file
keeping track of warnings.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public bool SaveExcel(string fileName, ExcelSaveFlags excelSaveFlags, ExcelWarningList warningList, string password)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Function SaveExcel(fileName As String, excelSaveFlags As ExcelSaveFlags, warningList As ExcelWarningList, password As String) 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.string">string</a></td>
      <td><span class="parametername">fileName</span></td>
      <td><p>Path and file name of file to save</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="../FarPoint.Excel/FarPoint.Excel.ExcelSaveFlags.html">ExcelSaveFlags</a></td>
      <td><span class="parametername">excelSaveFlags</span></td>
      <td><p>Which parts of the spreadsheet to save</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="../FarPoint.Excel/FarPoint.Excel.ExcelWarningList.html">ExcelWarningList</a></td>
      <td><span class="parametername">warningList</span></td>
      <td><p>List of warning messages that occur during this operation</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.string">string</a></td>
      <td><span class="parametername">password</span></td>
      <td><p>Password of file</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></td>
    </tr>
  </tbody>
</table>


<a id="FarPoint_Web_Spread_FpSpread_SaveExcel_" data-uid="FarPoint.Web.Spread.FpSpread.SaveExcel*"></a>
<h4 id="FarPoint_Web_Spread_FpSpread_SaveExcel_System_String_FarPoint_Excel_ExcelSaveFlags_" data-uid="FarPoint.Web.Spread.FpSpread.SaveExcel(System.String,FarPoint.Excel.ExcelSaveFlags)">SaveExcel(string, ExcelSaveFlags)</h4>
<div class="markdown level1 summary"><p>Saves the contents of the Spread component to Excel in the specified file
including the specified parts.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public bool SaveExcel(string fileName, ExcelSaveFlags excelSaveFlags)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Function SaveExcel(fileName As String, excelSaveFlags As ExcelSaveFlags) 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.string">string</a></td>
      <td><span class="parametername">fileName</span></td>
      <td><p>Path and file name of file to save</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="../FarPoint.Excel/FarPoint.Excel.ExcelSaveFlags.html">ExcelSaveFlags</a></td>
      <td><span class="parametername">excelSaveFlags</span></td>
      <td><p>Which parts of the spreadsheet to save</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></td>
    </tr>
  </tbody>
</table>


<a id="FarPoint_Web_Spread_FpSpread_SaveExcel_" data-uid="FarPoint.Web.Spread.FpSpread.SaveExcel*"></a>
<h4 id="FarPoint_Web_Spread_FpSpread_SaveExcel_System_String_FarPoint_Excel_ExcelSaveFlags_System_String_" data-uid="FarPoint.Web.Spread.FpSpread.SaveExcel(System.String,FarPoint.Excel.ExcelSaveFlags,System.String)">SaveExcel(string, ExcelSaveFlags, string)</h4>
<div class="markdown level1 summary"><p>Saves the contents of the Spread component to Excel in the specified file
including the specified parts.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public bool SaveExcel(string fileName, ExcelSaveFlags excelSaveFlags, string password)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Function SaveExcel(fileName As String, excelSaveFlags As ExcelSaveFlags, password As String) 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.string">string</a></td>
      <td><span class="parametername">fileName</span></td>
      <td><p>Path and file name of file to save</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="../FarPoint.Excel/FarPoint.Excel.ExcelSaveFlags.html">ExcelSaveFlags</a></td>
      <td><span class="parametername">excelSaveFlags</span></td>
      <td><p>Which parts of the spreadsheet to save</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.string">string</a></td>
      <td><span class="parametername">password</span></td>
      <td><p>Password of file</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></td>
    </tr>
  </tbody>
</table>
</div>
