# FarPoint.Win.Spread.SheetView.OpenExcel

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="FarPoint_Win_Spread_SheetView_OpenExcel_" data-uid="FarPoint.Win.Spread.SheetView.OpenExcel*">OpenExcel Method
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="FarPoint_Win_Spread_SheetView_OpenExcel_" data-uid="FarPoint.Win.Spread.SheetView.OpenExcel*"></a>
<h4 id="FarPoint_Win_Spread_SheetView_OpenExcel_System_IO_Stream_System_String_" data-uid="FarPoint.Win.Spread.SheetView.OpenExcel(System.IO.Stream,System.String)">OpenExcel(Stream, string)</h4>
<div class="markdown level1 summary"><p>Opens an Excel stream and loads the specified sheet (by name) from that file into this sheet.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public bool OpenExcel(Stream stream, string excelSheetName)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Function OpenExcel(stream As Stream, excelSheetName 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</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.string">string</a></td>
      <td><span class="parametername">excelSheetName</span></td>
      <td><p>Name of the sheet to load from the file</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_OpenExcel_" data-uid="FarPoint.Win.Spread.SheetView.OpenExcel*"></a>
<h4 id="FarPoint_Win_Spread_SheetView_OpenExcel_System_IO_Stream_System_String_System_String_" data-uid="FarPoint.Win.Spread.SheetView.OpenExcel(System.IO.Stream,System.String,System.String)">OpenExcel(Stream, string, string)</h4>
<div class="markdown level1 summary"><p>Opens an Excel stream and loads the specified sheet (by name) from that file into this sheet.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public bool OpenExcel(Stream stream, string excelSheetName, string password)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Function OpenExcel(stream As Stream, excelSheetName As String, password 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</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.string">string</a></td>
      <td><span class="parametername">excelSheetName</span></td>
      <td><p>Name of the sheet to load from the 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">password</span></td>
      <td><p>Password</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_OpenExcel_" data-uid="FarPoint.Win.Spread.SheetView.OpenExcel*"></a>
<h4 id="FarPoint_Win_Spread_SheetView_OpenExcel_System_IO_Stream_System_Int32_" data-uid="FarPoint.Win.Spread.SheetView.OpenExcel(System.IO.Stream,System.Int32)">OpenExcel(Stream, int)</h4>
<div class="markdown level1 summary"><p>Opens an Excel stream and loads the specified sheet (by number) from that file into this sheet.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public bool OpenExcel(Stream stream, int excelSheetIndex)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Function OpenExcel(stream As Stream, excelSheetIndex As Integer) 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</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a></td>
      <td><span class="parametername">excelSheetIndex</span></td>
      <td><p>Index of the sheet to load from the file</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_OpenExcel_" data-uid="FarPoint.Win.Spread.SheetView.OpenExcel*"></a>
<h4 id="FarPoint_Win_Spread_SheetView_OpenExcel_System_IO_Stream_System_Int32_System_String_" data-uid="FarPoint.Win.Spread.SheetView.OpenExcel(System.IO.Stream,System.Int32,System.String)">OpenExcel(Stream, int, string)</h4>
<div class="markdown level1 summary"><p>Opens an Excel stream and loads the specified sheet (by number) from that file into this sheet.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public bool OpenExcel(Stream stream, int excelSheetIndex, string password)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Function OpenExcel(stream As Stream, excelSheetIndex As Integer, password 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</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a></td>
      <td><span class="parametername">excelSheetIndex</span></td>
      <td><p>Index of the sheet to load from the 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">password</span></td>
      <td><p>Password</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_OpenExcel_" data-uid="FarPoint.Win.Spread.SheetView.OpenExcel*"></a>
<h4 id="FarPoint_Win_Spread_SheetView_OpenExcel_System_String_System_String_" data-uid="FarPoint.Win.Spread.SheetView.OpenExcel(System.String,System.String)">OpenExcel(string, string)</h4>
<div class="markdown level1 summary"><p>Opens an Excel file and loads the specified sheet (by name) from that file into this sheet.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public bool OpenExcel(string fileName, string excelSheetName)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Function OpenExcel(fileName As String, excelSheetName 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 open</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.string">string</a></td>
      <td><span class="parametername">excelSheetName</span></td>
      <td><p>Name of the sheet to load from the file</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_OpenExcel_" data-uid="FarPoint.Win.Spread.SheetView.OpenExcel*"></a>
<h4 id="FarPoint_Win_Spread_SheetView_OpenExcel_System_String_System_String_System_String_" data-uid="FarPoint.Win.Spread.SheetView.OpenExcel(System.String,System.String,System.String)">OpenExcel(string, string, string)</h4>
<div class="markdown level1 summary"><p>Opens an Excel file and loads the specified sheet (by name) from that file into this sheet.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public bool OpenExcel(string fileName, string excelSheetName, string password)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Function OpenExcel(fileName As String, excelSheetName As String, password 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 open</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.string">string</a></td>
      <td><span class="parametername">excelSheetName</span></td>
      <td><p>Name of the sheet to load from the 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">password</span></td>
      <td><p>Password</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_OpenExcel_" data-uid="FarPoint.Win.Spread.SheetView.OpenExcel*"></a>
<h4 id="FarPoint_Win_Spread_SheetView_OpenExcel_System_String_System_Int32_" data-uid="FarPoint.Win.Spread.SheetView.OpenExcel(System.String,System.Int32)">OpenExcel(string, int)</h4>
<div class="markdown level1 summary"><p>Opens an Excel file and loads the specified sheet (by number) from that file into this sheet.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public bool OpenExcel(string fileName, int excelSheetIndex)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Function OpenExcel(fileName As String, excelSheetIndex As Integer) 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 open</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a></td>
      <td><span class="parametername">excelSheetIndex</span></td>
      <td><p>Index of the sheet to load from the file</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_OpenExcel_" data-uid="FarPoint.Win.Spread.SheetView.OpenExcel*"></a>
<h4 id="FarPoint_Win_Spread_SheetView_OpenExcel_System_String_System_Int32_System_String_" data-uid="FarPoint.Win.Spread.SheetView.OpenExcel(System.String,System.Int32,System.String)">OpenExcel(string, int, string)</h4>
<div class="markdown level1 summary"><p>Opens an Excel file and loads the specified sheet (by number) from that file into this sheet.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public bool OpenExcel(string fileName, int excelSheetIndex, string password)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Function OpenExcel(fileName As String, excelSheetIndex As Integer, password 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 open</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a></td>
      <td><span class="parametername">excelSheetIndex</span></td>
      <td><p>Index of the sheet to load from the 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">password</span></td>
      <td><p>Password</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>
