# FarPoint.Web.Spread.SheetView.SaveTextFile

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="FarPoint_Web_Spread_SheetView_SaveTextFile_" data-uid="FarPoint.Web.Spread.SheetView.SaveTextFile*">SaveTextFile Method
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="FarPoint_Web_Spread_SheetView_SaveTextFile_" data-uid="FarPoint.Web.Spread.SheetView.SaveTextFile*"></a>
<h4 id="FarPoint_Web_Spread_SheetView_SaveTextFile_System_String_System_Boolean_" data-uid="FarPoint.Web.Spread.SheetView.SaveTextFile(System.String,System.Boolean)">SaveTextFile(string, bool)</h4>
<div class="markdown level1 summary"><p>Saves the sheet to a text file with the specified name.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public bool SaveTextFile(string fileName, bool unformatted)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Function SaveTextFile(fileName As String, unformatted 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 the file to which to save the 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">unformatted</span></td>
      <td><p>Whether to save the data unformatted</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_Web_Spread_SheetView_SaveTextFile_" data-uid="FarPoint.Web.Spread.SheetView.SaveTextFile*"></a>
<h4 id="FarPoint_Web_Spread_SheetView_SaveTextFile_System_IO_Stream_System_Boolean_" data-uid="FarPoint.Web.Spread.SheetView.SaveTextFile(System.IO.Stream,System.Boolean)">SaveTextFile(Stream, bool)</h4>
<div class="markdown level1 summary"><p>Saves the sheet as delimited text to a stream as specified.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public bool SaveTextFile(Stream stream, bool unformatted)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Function SaveTextFile(stream As Stream, unformatted 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>Stream to which to save the 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">unformatted</span></td>
      <td><p>Whether to save the data unformatted</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_SheetView_SaveTextFile_" data-uid="FarPoint.Web.Spread.SheetView.SaveTextFile*"></a>
<h4 id="FarPoint_Web_Spread_SheetView_SaveTextFile_System_String_System_Boolean_FarPoint_Web_Spread_Model_IncludeHeaders_System_String_System_String_System_String_" data-uid="FarPoint.Web.Spread.SheetView.SaveTextFile(System.String,System.Boolean,FarPoint.Web.Spread.Model.IncludeHeaders,System.String,System.String,System.String)">SaveTextFile(string, bool, IncludeHeaders, string, string, string)</h4>
<div class="markdown level1 summary"><p>Saves the sheet (and optionally headers) to a text file with the specified name and delimiters.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public bool SaveTextFile(string fileName, bool unformatted, IncludeHeaders includeHeaders, string rowDelimiter, string columnDelimiter, string cellDelimiter)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Function SaveTextFile(fileName As String, unformatted As Boolean, includeHeaders As IncludeHeaders, rowDelimiter As String, columnDelimiter As String, cellDelimiter 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 name of the file to which to save the 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">unformatted</span></td>
      <td><p>Whether to save the data unformatted</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>Which header cells from which to save data</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.string">string</a></td>
      <td><span class="parametername">rowDelimiter</span></td>
      <td><p>Row delimiter string</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.string">string</a></td>
      <td><span class="parametername">columnDelimiter</span></td>
      <td><p>Column delimiter string</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.string">string</a></td>
      <td><span class="parametername">cellDelimiter</span></td>
      <td><p>Cell delimiter string</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_SheetView_SaveTextFile_" data-uid="FarPoint.Web.Spread.SheetView.SaveTextFile*"></a>
<h4 id="FarPoint_Web_Spread_SheetView_SaveTextFile_System_String_System_Boolean_FarPoint_Web_Spread_Model_IncludeHeaders_System_Boolean_System_String_System_String_System_String_" data-uid="FarPoint.Web.Spread.SheetView.SaveTextFile(System.String,System.Boolean,FarPoint.Web.Spread.Model.IncludeHeaders,System.Boolean,System.String,System.String,System.String)">SaveTextFile(string, bool, IncludeHeaders, bool, string, string, string)</h4>
<div class="markdown level1 summary"><p>Saves the sheet (and optionally headers and footer) to a text file with
the specified name and delimiters.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public bool SaveTextFile(string fileName, bool unformatted, IncludeHeaders includeHeaders, bool includeFooter, string rowDelimiter, string columnDelimiter, string cellDelimiter)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Function SaveTextFile(fileName As String, unformatted As Boolean, includeHeaders As IncludeHeaders, includeFooter As Boolean, rowDelimiter As String, columnDelimiter As String, cellDelimiter 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 name of the file to which to save the 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">unformatted</span></td>
      <td><p>Whether to save the data unformatted</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>Which header cells from which to save data</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.boolean">bool</a></td>
      <td><span class="parametername">includeFooter</span></td>
      <td><p>Whether to save the data in the footer cells</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.string">string</a></td>
      <td><span class="parametername">rowDelimiter</span></td>
      <td><p>Row delimiter string</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.string">string</a></td>
      <td><span class="parametername">columnDelimiter</span></td>
      <td><p>Column delimiter string</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.string">string</a></td>
      <td><span class="parametername">cellDelimiter</span></td>
      <td><p>Cell delimiter string</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_SheetView_SaveTextFile_" data-uid="FarPoint.Web.Spread.SheetView.SaveTextFile*"></a>
<h4 id="FarPoint_Web_Spread_SheetView_SaveTextFile_System_IO_Stream_System_Boolean_FarPoint_Web_Spread_Model_IncludeHeaders_System_String_System_String_System_String_" data-uid="FarPoint.Web.Spread.SheetView.SaveTextFile(System.IO.Stream,System.Boolean,FarPoint.Web.Spread.Model.IncludeHeaders,System.String,System.String,System.String)">SaveTextFile(Stream, bool, IncludeHeaders, string, string, string)</h4>
<div class="markdown level1 summary"><p>Saves the range of cells (and may include headers) as delimited text to a stream as specified.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public bool SaveTextFile(Stream stream, bool unformatted, IncludeHeaders includeHeaders, string rowDelimiter, string columnDelimiter, string cellDelimiter)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Function SaveTextFile(stream As Stream, unformatted As Boolean, includeHeaders As IncludeHeaders, rowDelimiter As String, columnDelimiter As String, cellDelimiter 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 which to save the 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">unformatted</span></td>
      <td><p>Whether to save the data unformatted</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>Which header cells from which to save data</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.string">string</a></td>
      <td><span class="parametername">rowDelimiter</span></td>
      <td><p>Row delimiter string</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.string">string</a></td>
      <td><span class="parametername">columnDelimiter</span></td>
      <td><p>Column delimiter string</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.string">string</a></td>
      <td><span class="parametername">cellDelimiter</span></td>
      <td><p>Cell delimiter string</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_SheetView_SaveTextFile_" data-uid="FarPoint.Web.Spread.SheetView.SaveTextFile*"></a>
<h4 id="FarPoint_Web_Spread_SheetView_SaveTextFile_System_IO_Stream_System_Boolean_FarPoint_Web_Spread_Model_IncludeHeaders_System_Boolean_System_String_System_String_System_String_" data-uid="FarPoint.Web.Spread.SheetView.SaveTextFile(System.IO.Stream,System.Boolean,FarPoint.Web.Spread.Model.IncludeHeaders,System.Boolean,System.String,System.String,System.String)">SaveTextFile(Stream, bool, IncludeHeaders, bool, string, string, string)</h4>
<div class="markdown level1 summary"><p>Saves the range of cells (and may include headers and footer) as delimited text
to a stream as specified.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public bool SaveTextFile(Stream stream, bool unformatted, IncludeHeaders includeHeaders, bool includeFooter, string rowDelimiter, string columnDelimiter, string cellDelimiter)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Function SaveTextFile(stream As Stream, unformatted As Boolean, includeHeaders As IncludeHeaders, includeFooter As Boolean, rowDelimiter As String, columnDelimiter As String, cellDelimiter 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 which to save the 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">unformatted</span></td>
      <td><p>Whether to save the data unformatted</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>Which header cells from which to save data</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.boolean">bool</a></td>
      <td><span class="parametername">includeFooter</span></td>
      <td><p>Whether to save the data in the footer cells</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.string">string</a></td>
      <td><span class="parametername">rowDelimiter</span></td>
      <td><p>Row delimiter string</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.string">string</a></td>
      <td><span class="parametername">columnDelimiter</span></td>
      <td><p>Column delimiter string</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.string">string</a></td>
      <td><span class="parametername">cellDelimiter</span></td>
      <td><p>Cell delimiter string</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>
