# FarPoint.Win.Spread.Model.SpreadSerializer.SaveXml

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="FarPoint_Win_Spread_Model_SpreadSerializer_SaveXml_" data-uid="FarPoint.Win.Spread.Model.SpreadSerializer.SaveXml*">SaveXml Method
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="FarPoint_Win_Spread_Model_SpreadSerializer_SaveXml_" data-uid="FarPoint.Win.Spread.Model.SpreadSerializer.SaveXml*"></a>
<h4 id="FarPoint_Win_Spread_Model_SpreadSerializer_SaveXml_FarPoint_Win_Spread_FpSpread_System_String_FarPoint_Win_Spread_SaveXMLOptions_" data-uid="FarPoint.Win.Spread.Model.SpreadSerializer.SaveXml(FarPoint.Win.Spread.FpSpread,System.String,FarPoint.Win.Spread.SaveXMLOptions)">SaveXml(FpSpread, string, SaveXMLOptions)</h4>
<div class="markdown level1 summary"><p>Saves an entire Spread component to an XML file.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public static bool SaveXml(FpSpread spread, string fileName, SaveXMLOptions saveOption)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Shared Function SaveXml(spread As FpSpread, 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="FarPoint.Win.Spread.FpSpread.html">FpSpread</a></td>
      <td><span class="parametername">spread</span></td>
      <td><p>Spread component 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">fileName</span></td>
      <td><p>Path and name of file to which to save the Spread component 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 to XML options</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 is successful; false otherwise</p>
</td>
    </tr>
  </tbody>
</table>


<a id="FarPoint_Win_Spread_Model_SpreadSerializer_SaveXml_" data-uid="FarPoint.Win.Spread.Model.SpreadSerializer.SaveXml*"></a>
<h4 id="FarPoint_Win_Spread_Model_SpreadSerializer_SaveXml_FarPoint_Win_Spread_FpSpread_System_String_System_Boolean_" data-uid="FarPoint.Win.Spread.Model.SpreadSerializer.SaveXml(FarPoint.Win.Spread.FpSpread,System.String,System.Boolean)">SaveXml(FpSpread, string, bool)</h4>
<div class="markdown level1 summary"><p>Saves an entire Spread component to an XML file.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public static bool SaveXml(FpSpread spread, string fileName, bool dataOnly)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Shared Function SaveXml(spread As FpSpread, 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="FarPoint.Win.Spread.FpSpread.html">FpSpread</a></td>
      <td><span class="parametername">spread</span></td>
      <td><p>Spread component 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">fileName</span></td>
      <td><p>Path and name of file to which to save the Spread component 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 only the data in the Spread component</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 is successful; false otherwise</p>
</td>
    </tr>
  </tbody>
</table>


<a id="FarPoint_Win_Spread_Model_SpreadSerializer_SaveXml_" data-uid="FarPoint.Win.Spread.Model.SpreadSerializer.SaveXml*"></a>
<h4 id="FarPoint_Win_Spread_Model_SpreadSerializer_SaveXml_FarPoint_Win_Spread_FpSpread_System_IO_Stream_System_Boolean_" data-uid="FarPoint.Win.Spread.Model.SpreadSerializer.SaveXml(FarPoint.Win.Spread.FpSpread,System.IO.Stream,System.Boolean)">SaveXml(FpSpread, Stream, bool)</h4>
<div class="markdown level1 summary"><p>Saves an entire Spread component to an XML stream.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public static bool SaveXml(FpSpread spread, Stream stream, bool dataOnly)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Shared Function SaveXml(spread As FpSpread, 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="FarPoint.Win.Spread.FpSpread.html">FpSpread</a></td>
      <td><span class="parametername">spread</span></td>
      <td><p>Spread component to save</p>
</td>
    </tr>
    <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 which to save the Spread component 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 only the data in the Spread component</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 is successful; false otherwise</p>
</td>
    </tr>
  </tbody>
</table>


<a id="FarPoint_Win_Spread_Model_SpreadSerializer_SaveXml_" data-uid="FarPoint.Win.Spread.Model.SpreadSerializer.SaveXml*"></a>
<h4 id="FarPoint_Win_Spread_Model_SpreadSerializer_SaveXml_FarPoint_Win_Spread_FpSpread_System_IO_Stream_FarPoint_Win_Spread_SaveXMLOptions_" data-uid="FarPoint.Win.Spread.Model.SpreadSerializer.SaveXml(FarPoint.Win.Spread.FpSpread,System.IO.Stream,FarPoint.Win.Spread.SaveXMLOptions)">SaveXml(FpSpread, Stream, SaveXMLOptions)</h4>
<div class="markdown level1 summary"><p>Saves an entire Spread component to an XML stream.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public static bool SaveXml(FpSpread spread, Stream stream, SaveXMLOptions saveOption)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Shared Function SaveXml(spread As FpSpread, 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="FarPoint.Win.Spread.FpSpread.html">FpSpread</a></td>
      <td><span class="parametername">spread</span></td>
      <td><p>Spread component to save</p>
</td>
    </tr>
    <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 which to save the Spread component 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 to XML options</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 is successful; false otherwise</p>
</td>
    </tr>
  </tbody>
</table>


<a id="FarPoint_Win_Spread_Model_SpreadSerializer_SaveXml_" data-uid="FarPoint.Win.Spread.Model.SpreadSerializer.SaveXml*"></a>
<h4 id="FarPoint_Win_Spread_Model_SpreadSerializer_SaveXml_FarPoint_Win_Spread_SheetView_System_IO_Stream_FarPoint_Win_Spread_SaveXMLOptions_" data-uid="FarPoint.Win.Spread.Model.SpreadSerializer.SaveXml(FarPoint.Win.Spread.SheetView,System.IO.Stream,FarPoint.Win.Spread.SaveXMLOptions)">SaveXml(SheetView, Stream, SaveXMLOptions)</h4>
<div class="markdown level1 summary"><p>Saves an entire sheet view to an XML stream.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public static bool SaveXml(SheetView sheetView, Stream stream, SaveXMLOptions saveOption)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Shared Function SaveXml(sheetView As SheetView, 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="FarPoint.Win.Spread.SheetView.html">SheetView</a></td>
      <td><span class="parametername">sheetView</span></td>
      <td><p>The sheet view to save</p>
</td>
    </tr>
    <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 which to save the 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 Saving xml options</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 is successful; false otherwise</p>
</td>
    </tr>
  </tbody>
</table>


<a id="FarPoint_Win_Spread_Model_SpreadSerializer_SaveXml_" data-uid="FarPoint.Win.Spread.Model.SpreadSerializer.SaveXml*"></a>
<h4 id="FarPoint_Win_Spread_Model_SpreadSerializer_SaveXml_FarPoint_Win_Spread_SheetView_System_IO_Stream_System_Boolean_" data-uid="FarPoint.Win.Spread.Model.SpreadSerializer.SaveXml(FarPoint.Win.Spread.SheetView,System.IO.Stream,System.Boolean)">SaveXml(SheetView, Stream, bool)</h4>
<div class="markdown level1 summary"><p>Saves an entire sheet view to an XML stream.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public static bool SaveXml(SheetView sheetView, Stream stream, bool dataOnly)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Shared Function SaveXml(sheetView As SheetView, 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="FarPoint.Win.Spread.SheetView.html">SheetView</a></td>
      <td><span class="parametername">sheetView</span></td>
      <td><p>The sheet view to save</p>
</td>
    </tr>
    <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 which to save the 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 only the data in the sheet view</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 is successful; false otherwise</p>
</td>
    </tr>
  </tbody>
</table>
</div>
