# FarPoint.Win.Spread.SheetView.Save

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="FarPoint_Win_Spread_SheetView_Save_" data-uid="FarPoint.Win.Spread.SheetView.Save*">Save Method
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="FarPoint_Win_Spread_SheetView_Save_" data-uid="FarPoint.Win.Spread.SheetView.Save*"></a>
<h4 id="FarPoint_Win_Spread_SheetView_Save_System_String_System_Boolean_" data-uid="FarPoint.Win.Spread.SheetView.Save(System.String,System.Boolean)">Save(string, bool)</h4>
<div class="markdown level1 summary"><p>Saves the contents of the sheet view to 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 Save(string fileName, bool dataOnly)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Function Save(fileName As String, dataOnly As Boolean) 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 name of file to which to save</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.boolean">bool</a></td>
      <td><span class="parametername">dataOnly</span></td>
      <td><p>Whether to save data only</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><p>true if successful; false otherwise</p>
</td>
    </tr>
  </tbody>
</table>


<a id="FarPoint_Win_Spread_SheetView_Save_" data-uid="FarPoint.Win.Spread.SheetView.Save*"></a>
<h4 id="FarPoint_Win_Spread_SheetView_Save_System_String_FarPoint_Win_Spread_SaveXMLOptions_" data-uid="FarPoint.Win.Spread.SheetView.Save(System.String,FarPoint.Win.Spread.SaveXMLOptions)">Save(string, SaveXMLOptions)</h4>
<div class="markdown level1 summary"><p>Saves the contents of the sheet view to 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 Save(string fileName, SaveXMLOptions saveOption)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Function Save(fileName As String, saveOption As SaveXMLOptions) 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 name of file to which to save</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="FarPoint.Win.Spread.SaveXMLOptions.html">SaveXMLOptions</a></td>
      <td><span class="parametername">saveOption</span></td>
      <td><p>Save xml option</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><p>True if successfull; false otherwise</p>
</td>
    </tr>
  </tbody>
</table>


<a id="FarPoint_Win_Spread_SheetView_Save_" data-uid="FarPoint.Win.Spread.SheetView.Save*"></a>
<h4 id="FarPoint_Win_Spread_SheetView_Save_System_IO_Stream_FarPoint_Win_Spread_SaveXMLOptions_" data-uid="FarPoint.Win.Spread.SheetView.Save(System.IO.Stream,FarPoint.Win.Spread.SaveXMLOptions)">Save(Stream, SaveXMLOptions)</h4>
<div class="markdown level1 summary"><p>Saves the contents of the sheet view to the specified 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 Save(Stream stream, SaveXMLOptions saveOption)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Function Save(stream As Stream, saveOption As SaveXMLOptions) 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>The stream to save sheet view as XML</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="FarPoint.Win.Spread.SaveXMLOptions.html">SaveXMLOptions</a></td>
      <td><span class="parametername">saveOption</span></td>
      <td><p>Whether to save option</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><p>TRUE if success. Otherwise, FALSE</p>
</td>
    </tr>
  </tbody>
</table>


<a id="FarPoint_Win_Spread_SheetView_Save_" data-uid="FarPoint.Win.Spread.SheetView.Save*"></a>
<h4 id="FarPoint_Win_Spread_SheetView_Save_System_IO_Stream_System_Boolean_" data-uid="FarPoint.Win.Spread.SheetView.Save(System.IO.Stream,System.Boolean)">Save(Stream, bool)</h4>
<div class="markdown level1 summary"><p>Saves the contents of the sheet view to the specified 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 Save(Stream stream, bool dataOnly)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Function Save(stream As Stream, dataOnly As Boolean) 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>The stream to save sheet view as XML</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.boolean">bool</a></td>
      <td><span class="parametername">dataOnly</span></td>
      <td><p>Whether to save data only</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><p>true if successful; false otherwise</p>
</td>
    </tr>
  </tbody>
</table>
</div>
