# FarPoint.Win.Spread.SheetView.LoadTextFileRange

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="FarPoint_Win_Spread_SheetView_LoadTextFileRange_" data-uid="FarPoint.Win.Spread.SheetView.LoadTextFileRange*">LoadTextFileRange Method
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="FarPoint_Win_Spread_SheetView_LoadTextFileRange_" data-uid="FarPoint.Win.Spread.SheetView.LoadTextFileRange*"></a>
<h4 id="FarPoint_Win_Spread_SheetView_LoadTextFileRange_System_String_FarPoint_Win_Spread_Model_CellRange_FarPoint_Win_Spread_TextFileFlags_" data-uid="FarPoint.Win.Spread.SheetView.LoadTextFileRange(System.String,FarPoint.Win.Spread.Model.CellRange,FarPoint.Win.Spread.TextFileFlags)">LoadTextFileRange(string, CellRange, TextFileFlags)</h4>
<div class="markdown level1 summary"><p>Loads delimited text from a specified file into the sheet.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public void LoadTextFileRange(string fileName, CellRange cellRange, TextFileFlags textFileFlags)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub LoadTextFileRange(fileName As String, cellRange As CellRange, textFileFlags As TextFileFlags)</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 load</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="FarPoint.Win.Spread.Model.CellRange.html">CellRange</a></td>
      <td><span class="parametername">cellRange</span></td>
      <td><p>Specifies range process the data when loading from a text file</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 loading from a text file</p>
</td>
    </tr>
  </tbody>
</table>


<a id="FarPoint_Win_Spread_SheetView_LoadTextFileRange_" data-uid="FarPoint.Win.Spread.SheetView.LoadTextFileRange*"></a>
<h4 id="FarPoint_Win_Spread_SheetView_LoadTextFileRange_System_String_FarPoint_Win_Spread_Model_CellRange_FarPoint_Win_Spread_TextFileFlags_System_String_System_String_System_String_" data-uid="FarPoint.Win.Spread.SheetView.LoadTextFileRange(System.String,FarPoint.Win.Spread.Model.CellRange,FarPoint.Win.Spread.TextFileFlags,System.String,System.String,System.String)">LoadTextFileRange(string, CellRange, TextFileFlags, string, string, string)</h4>
<div class="markdown level1 summary"><p>Loads delimited text from a specified file into the sheet, with or without headers, with the specified encoding.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public void LoadTextFileRange(string fileName, CellRange cellRange, TextFileFlags textFileFlags, string rowDelimiter, string columnDelimiter, string cellDelimiter)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub LoadTextFileRange(fileName As String, cellRange As CellRange, textFileFlags As TextFileFlags, rowDelimiter As String, columnDelimiter As String, cellDelimiter As String)</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 load</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="FarPoint.Win.Spread.Model.CellRange.html">CellRange</a></td>
      <td><span class="parametername">cellRange</span></td>
      <td><p>Specifies range process the data when loading from a text file</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 loading from a text 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">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="exceptions">Exceptions</h5>
<table class="table table-bordered table-condensed">
  <thead>
    <tr>
      <th>Type</th>
      <th>Condition</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.argumentexception">ArgumentException</a></td>
      <td><p>Cell delimiter cannot be contained in a row or column delimiter</p>
</td>
    </tr>
  </tbody>
</table>


<a id="FarPoint_Win_Spread_SheetView_LoadTextFileRange_" data-uid="FarPoint.Win.Spread.SheetView.LoadTextFileRange*"></a>
<h4 id="FarPoint_Win_Spread_SheetView_LoadTextFileRange_System_String_FarPoint_Win_Spread_Model_CellRange_FarPoint_Win_Spread_TextFileFlags_System_String_System_String_System_String_System_Text_Encoding_" data-uid="FarPoint.Win.Spread.SheetView.LoadTextFileRange(System.String,FarPoint.Win.Spread.Model.CellRange,FarPoint.Win.Spread.TextFileFlags,System.String,System.String,System.String,System.Text.Encoding)">LoadTextFileRange(string, CellRange, TextFileFlags, string, string, string, Encoding)</h4>
<div class="markdown level1 summary"><p>Loads delimited text from a specified file into the sheetwith the specified encoding.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public void LoadTextFileRange(string fileName, CellRange cellRange, TextFileFlags textFileFlags, string rowDelimiter, string columnDelimiter, string cellDelimiter, Encoding encoding)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub LoadTextFileRange(fileName As String, cellRange As CellRange, textFileFlags As TextFileFlags, rowDelimiter As String, columnDelimiter As String, cellDelimiter As String, encoding As Encoding)</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 load</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="FarPoint.Win.Spread.Model.CellRange.html">CellRange</a></td>
      <td><span class="parametername">cellRange</span></td>
      <td><p>Specifies range process the data when loading from a text file</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 loading from a text 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">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="exceptions">Exceptions</h5>
<table class="table table-bordered table-condensed">
  <thead>
    <tr>
      <th>Type</th>
      <th>Condition</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.argumentexception">ArgumentException</a></td>
      <td><p>Cell delimiter cannot be contained in a row or column delimiter</p>
</td>
    </tr>
  </tbody>
</table>


<a id="FarPoint_Win_Spread_SheetView_LoadTextFileRange_" data-uid="FarPoint.Win.Spread.SheetView.LoadTextFileRange*"></a>
<h4 id="FarPoint_Win_Spread_SheetView_LoadTextFileRange_System_IO_Stream_FarPoint_Win_Spread_Model_CellRange_FarPoint_Win_Spread_TextFileFlags_" data-uid="FarPoint.Win.Spread.SheetView.LoadTextFileRange(System.IO.Stream,FarPoint.Win.Spread.Model.CellRange,FarPoint.Win.Spread.TextFileFlags)">LoadTextFileRange(Stream, CellRange, TextFileFlags)</h4>
<div class="markdown level1 summary"><p>Loads delimited text from a specified file into the sheet.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public void LoadTextFileRange(Stream stream, CellRange cellRange, TextFileFlags textFileFlags)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub LoadTextFileRange(stream As Stream, cellRange As CellRange, textFileFlags As TextFileFlags)</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 load the text of the sheet</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="FarPoint.Win.Spread.Model.CellRange.html">CellRange</a></td>
      <td><span class="parametername">cellRange</span></td>
      <td><p>Specifies range process the data when loading from a text file</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 loading from a text file</p>
</td>
    </tr>
  </tbody>
</table>


<a id="FarPoint_Win_Spread_SheetView_LoadTextFileRange_" data-uid="FarPoint.Win.Spread.SheetView.LoadTextFileRange*"></a>
<h4 id="FarPoint_Win_Spread_SheetView_LoadTextFileRange_System_IO_Stream_FarPoint_Win_Spread_Model_CellRange_FarPoint_Win_Spread_TextFileFlags_System_String_System_String_System_String_System_Text_Encoding_" data-uid="FarPoint.Win.Spread.SheetView.LoadTextFileRange(System.IO.Stream,FarPoint.Win.Spread.Model.CellRange,FarPoint.Win.Spread.TextFileFlags,System.String,System.String,System.String,System.Text.Encoding)">LoadTextFileRange(Stream, CellRange, TextFileFlags, string, string, string, Encoding)</h4>
<div class="markdown level1 summary"><p>Loads delimited text from a specified file into the sheet, with the specified encoding.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public void LoadTextFileRange(Stream stream, CellRange cellRange, TextFileFlags textFileFlags, string rowDelimiter, string columnDelimiter, string cellDelimiter, Encoding encoding)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub LoadTextFileRange(stream As Stream, cellRange As CellRange, textFileFlags As TextFileFlags, rowDelimiter As String, columnDelimiter As String, cellDelimiter As String, encoding As Encoding)</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 load the text of the sheet</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="FarPoint.Win.Spread.Model.CellRange.html">CellRange</a></td>
      <td><span class="parametername">cellRange</span></td>
      <td><p>Specifies range process the data when loading from a text file</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 loading from a text 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">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="exceptions">Exceptions</h5>
<table class="table table-bordered table-condensed">
  <thead>
    <tr>
      <th>Type</th>
      <th>Condition</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.argumentexception">ArgumentException</a></td>
      <td><p>Cell delimiter cannot be contained in a row or column delimiter</p>
</td>
    </tr>
  </tbody>
</table>


<a id="FarPoint_Win_Spread_SheetView_LoadTextFileRange_" data-uid="FarPoint.Win.Spread.SheetView.LoadTextFileRange*"></a>
<h4 id="FarPoint_Win_Spread_SheetView_LoadTextFileRange_System_IO_Stream_FarPoint_Win_Spread_Model_CellRange_FarPoint_Win_Spread_TextFileFlags_System_String_System_String_System_String_" data-uid="FarPoint.Win.Spread.SheetView.LoadTextFileRange(System.IO.Stream,FarPoint.Win.Spread.Model.CellRange,FarPoint.Win.Spread.TextFileFlags,System.String,System.String,System.String)">LoadTextFileRange(Stream, CellRange, TextFileFlags, string, string, string)</h4>
<div class="markdown level1 summary"><p>Loads delimited text from a specified file into the sheet.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public void LoadTextFileRange(Stream stream, CellRange cellRange, TextFileFlags textFileFlags, string rowDelimiter, string columnDelimiter, string cellDelimiter)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub LoadTextFileRange(stream As Stream, cellRange As CellRange, textFileFlags As TextFileFlags, rowDelimiter As String, columnDelimiter As String, cellDelimiter As String)</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 load the text of the sheet</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="FarPoint.Win.Spread.Model.CellRange.html">CellRange</a></td>
      <td><span class="parametername">cellRange</span></td>
      <td><p>Specifies range process the data when loading from a text file</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 loading from a text 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">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="exceptions">Exceptions</h5>
<table class="table table-bordered table-condensed">
  <thead>
    <tr>
      <th>Type</th>
      <th>Condition</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.argumentexception">ArgumentException</a></td>
      <td><p>Cell delimiter cannot be contained in a row or column delimiter</p>
</td>
    </tr>
  </tbody>
</table>
</div>
