# FarPoint.Win.Spread.SheetView.SaveTextFileRange

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="FarPoint_Win_Spread_SheetView_SaveTextFileRange_" data-uid="FarPoint.Win.Spread.SheetView.SaveTextFileRange*">SaveTextFileRange Method
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="FarPoint_Win_Spread_SheetView_SaveTextFileRange_" data-uid="FarPoint.Win.Spread.SheetView.SaveTextFileRange*"></a>
<h4 id="FarPoint_Win_Spread_SheetView_SaveTextFileRange_System_Int32_System_Int32_System_Int32_System_Int32_System_String_FarPoint_Win_Spread_TextFileFlags_FarPoint_Win_Spread_Model_IncludeHeaders_System_String_System_String_System_String_" data-uid="FarPoint.Win.Spread.SheetView.SaveTextFileRange(System.Int32,System.Int32,System.Int32,System.Int32,System.String,FarPoint.Win.Spread.TextFileFlags,FarPoint.Win.Spread.Model.IncludeHeaders,System.String,System.String,System.String)">SaveTextFileRange(int, int, int, int, string, TextFileFlags, IncludeHeaders, string, string, string)</h4>
<div class="markdown level1 summary"><p>Saves the range of cells in a sheet to a text file<br>
with the specified name, formatting settings, 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 SaveTextFileRange(int row, int column, int rowCount, int columnCount, string fileName, TextFileFlags textFileFlags, IncludeHeaders includeHeaders, string rowDelimiter, string columnDelimiter, string cellDelimiter)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Function SaveTextFileRange(row As Integer, column As Integer, rowCount As Integer, columnCount As Integer, fileName As String, textFileFlags As TextFileFlags, 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.int32">int</a></td>
      <td><span class="parametername">row</span></td>
      <td><p>Starting row index</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a></td>
      <td><span class="parametername">column</span></td>
      <td><p>Starting column index</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a></td>
      <td><span class="parametername">rowCount</span></td>
      <td><p>Number of rows</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a></td>
      <td><span class="parametername">columnCount</span></td>
      <td><p>Number of columns</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 text of the range</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="FarPoint.Win.Spread.TextFileFlags.html">TextFileFlags</a></td>
      <td><span class="parametername">textFileFlags</span></td>
      <td><p>Specifies how to process the data when saving to a text file</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="FarPoint.Win.Spread.Model.IncludeHeaders.html">IncludeHeaders</a></td>
      <td><span class="parametername">includeHeaders</span></td>
      <td><p>Whether to export headers as 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><p>true if successful; false otherwise</p>
</td>
    </tr>
  </tbody>
</table>


<a id="FarPoint_Win_Spread_SheetView_SaveTextFileRange_" data-uid="FarPoint.Win.Spread.SheetView.SaveTextFileRange*"></a>
<h4 id="FarPoint_Win_Spread_SheetView_SaveTextFileRange_System_Int32_System_Int32_System_Int32_System_Int32_System_String_FarPoint_Win_Spread_TextFileFlags_FarPoint_Win_Spread_Model_IncludeHeaders_System_String_System_String_System_String_System_Text_Encoding_" data-uid="FarPoint.Win.Spread.SheetView.SaveTextFileRange(System.Int32,System.Int32,System.Int32,System.Int32,System.String,FarPoint.Win.Spread.TextFileFlags,FarPoint.Win.Spread.Model.IncludeHeaders,System.String,System.String,System.String,System.Text.Encoding)">SaveTextFileRange(int, int, int, int, string, TextFileFlags, IncludeHeaders, string, string, string, Encoding)</h4>
<div class="markdown level1 summary"><p>Saves the range of cells in a sheet to a text file<br>
with the specified name, formatting settings, 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 SaveTextFileRange(int row, int column, int rowCount, int columnCount, string fileName, TextFileFlags textFileFlags, IncludeHeaders includeHeaders, string rowDelimiter, string columnDelimiter, string cellDelimiter, Encoding encoding)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Function SaveTextFileRange(row As Integer, column As Integer, rowCount As Integer, columnCount As Integer, fileName As String, textFileFlags As TextFileFlags, includeHeaders As IncludeHeaders, rowDelimiter As String, columnDelimiter As String, cellDelimiter As String, encoding As Encoding) 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">row</span></td>
      <td><p>Starting row index</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a></td>
      <td><span class="parametername">column</span></td>
      <td><p>Starting column index</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a></td>
      <td><span class="parametername">rowCount</span></td>
      <td><p>Number of rows</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a></td>
      <td><span class="parametername">columnCount</span></td>
      <td><p>Number of columns</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 text of the range</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="FarPoint.Win.Spread.TextFileFlags.html">TextFileFlags</a></td>
      <td><span class="parametername">textFileFlags</span></td>
      <td><p>Specifies how to process the data when saving to a text file</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="FarPoint.Win.Spread.Model.IncludeHeaders.html">IncludeHeaders</a></td>
      <td><span class="parametername">includeHeaders</span></td>
      <td><p>Whether to export headers as 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>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.text.encoding">Encoding</a></td>
      <td><span class="parametername">encoding</span></td>
      <td><p>Encoding</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_SaveTextFileRange_" data-uid="FarPoint.Win.Spread.SheetView.SaveTextFileRange*"></a>
<h4 id="FarPoint_Win_Spread_SheetView_SaveTextFileRange_System_Int32_System_Int32_System_Int32_System_Int32_System_IO_Stream_FarPoint_Win_Spread_TextFileFlags_FarPoint_Win_Spread_Model_IncludeHeaders_System_String_System_String_System_String_" data-uid="FarPoint.Win.Spread.SheetView.SaveTextFileRange(System.Int32,System.Int32,System.Int32,System.Int32,System.IO.Stream,FarPoint.Win.Spread.TextFileFlags,FarPoint.Win.Spread.Model.IncludeHeaders,System.String,System.String,System.String)">SaveTextFileRange(int, int, int, int, Stream, TextFileFlags, IncludeHeaders, string, string, string)</h4>
<div class="markdown level1 summary"><p>Saves the range of cells in a sheet to a text file<br>
with the specified name, formatting settings, 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 SaveTextFileRange(int row, int column, int rowCount, int columnCount, Stream stream, TextFileFlags textFileFlags, IncludeHeaders includeHeaders, string rowDelimiter, string columnDelimiter, string cellDelimiter)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Function SaveTextFileRange(row As Integer, column As Integer, rowCount As Integer, columnCount As Integer, stream As Stream, textFileFlags As TextFileFlags, 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.int32">int</a></td>
      <td><span class="parametername">row</span></td>
      <td><p>Starting row index</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a></td>
      <td><span class="parametername">column</span></td>
      <td><p>Starting column index</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a></td>
      <td><span class="parametername">rowCount</span></td>
      <td><p>Number of rows</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a></td>
      <td><span class="parametername">columnCount</span></td>
      <td><p>Number of columns</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 text of the sheet</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="FarPoint.Win.Spread.TextFileFlags.html">TextFileFlags</a></td>
      <td><span class="parametername">textFileFlags</span></td>
      <td><p>Specifies how to process the data when saving to a text file</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="FarPoint.Win.Spread.Model.IncludeHeaders.html">IncludeHeaders</a></td>
      <td><span class="parametername">includeHeaders</span></td>
      <td><p>Whether to export headers as 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><p>true if successful; false otherwise</p>
</td>
    </tr>
  </tbody>
</table>


<a id="FarPoint_Win_Spread_SheetView_SaveTextFileRange_" data-uid="FarPoint.Win.Spread.SheetView.SaveTextFileRange*"></a>
<h4 id="FarPoint_Win_Spread_SheetView_SaveTextFileRange_System_Int32_System_Int32_System_Int32_System_Int32_System_IO_Stream_FarPoint_Win_Spread_TextFileFlags_FarPoint_Win_Spread_Model_IncludeHeaders_System_String_System_String_System_String_System_Text_Encoding_" data-uid="FarPoint.Win.Spread.SheetView.SaveTextFileRange(System.Int32,System.Int32,System.Int32,System.Int32,System.IO.Stream,FarPoint.Win.Spread.TextFileFlags,FarPoint.Win.Spread.Model.IncludeHeaders,System.String,System.String,System.String,System.Text.Encoding)">SaveTextFileRange(int, int, int, int, Stream, TextFileFlags, IncludeHeaders, string, string, string, Encoding)</h4>
<div class="markdown level1 summary"><p>Saves the range of cells in a sheet to a text file<br>
with the specified name, formatting settings, 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 SaveTextFileRange(int row, int column, int rowCount, int columnCount, Stream stream, TextFileFlags textFileFlags, IncludeHeaders includeHeaders, string rowDelimiter, string columnDelimiter, string cellDelimiter, Encoding encoding)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Function SaveTextFileRange(row As Integer, column As Integer, rowCount As Integer, columnCount As Integer, stream As Stream, textFileFlags As TextFileFlags, includeHeaders As IncludeHeaders, rowDelimiter As String, columnDelimiter As String, cellDelimiter As String, encoding As Encoding) 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">row</span></td>
      <td><p>Starting row index</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a></td>
      <td><span class="parametername">column</span></td>
      <td><p>Starting column index</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a></td>
      <td><span class="parametername">rowCount</span></td>
      <td><p>Number of rows</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a></td>
      <td><span class="parametername">columnCount</span></td>
      <td><p>Number of columns</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 text of the sheet</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="FarPoint.Win.Spread.TextFileFlags.html">TextFileFlags</a></td>
      <td><span class="parametername">textFileFlags</span></td>
      <td><p>Specifies how to process the data when saving to a text file</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="FarPoint.Win.Spread.Model.IncludeHeaders.html">IncludeHeaders</a></td>
      <td><span class="parametername">includeHeaders</span></td>
      <td><p>Whether to export headers as 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>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.text.encoding">Encoding</a></td>
      <td><span class="parametername">encoding</span></td>
      <td><p>Encoding</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>
