# FarPoint.Web.Spread.SheetView.OpenExcel

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="FarPoint_Web_Spread_SheetView_OpenExcel_" data-uid="FarPoint.Web.Spread.SheetView.OpenExcel*">OpenExcel Method
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="FarPoint_Web_Spread_SheetView_OpenExcel_" data-uid="FarPoint.Web.Spread.SheetView.OpenExcel*"></a>
<h4 id="FarPoint_Web_Spread_SheetView_OpenExcel_System_String_System_String_" data-uid="FarPoint.Web.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 Excel sheet 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 sheetName)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Function OpenExcel(fileName As String, sheetName 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>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">sheetName</span></td>
      <td><p>Name of the sheet in the Excel file to load</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_OpenExcel_" data-uid="FarPoint.Web.Spread.SheetView.OpenExcel*"></a>
<h4 id="FarPoint_Web_Spread_SheetView_OpenExcel_System_String_System_Int32_" data-uid="FarPoint.Web.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 Excel sheet 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>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 in the Excel file to load</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>
<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="../FarPoint.Excel/FarPoint.Excel.ExcelException.html">ExcelException</a></td>
      <td><p>Specified sheet in Excel is invalid; index must be between 0 and the number of sheets</p>
</td>
    </tr>
  </tbody>
</table>


<a id="FarPoint_Web_Spread_SheetView_OpenExcel_" data-uid="FarPoint.Web.Spread.SheetView.OpenExcel*"></a>
<h4 id="FarPoint_Web_Spread_SheetView_OpenExcel_System_IO_Stream_System_String_" data-uid="FarPoint.Web.Spread.SheetView.OpenExcel(System.IO.Stream,System.String)">OpenExcel(Stream, string)</h4>
<div class="markdown level1 summary"><p>Opens an Excel file and load the specified Excel sheet 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 sheetName)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Function OpenExcel(stream As Stream, sheetName 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 containing an Excel Compound Document 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">sheetName</span></td>
      <td><p>Name of sheet in Excel to load</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_OpenExcel_" data-uid="FarPoint.Web.Spread.SheetView.OpenExcel*"></a>
<h4 id="FarPoint_Web_Spread_SheetView_OpenExcel_System_IO_Stream_System_Int32_" data-uid="FarPoint.Web.Spread.SheetView.OpenExcel(System.IO.Stream,System.Int32)">OpenExcel(Stream, int)</h4>
<div class="markdown level1 summary"><p>Opens an Excel file and loads the specified Excel sheet 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 containing an Excel Compound Document File</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 Excel sheet to load</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>
<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="../FarPoint.Excel/FarPoint.Excel.ExcelException.html">ExcelException</a></td>
      <td><p>Specified sheet in Excel is invalid; index must be between 0 and the number of sheets</p>
</td>
    </tr>
  </tbody>
</table>


<a id="FarPoint_Web_Spread_SheetView_OpenExcel_" data-uid="FarPoint.Web.Spread.SheetView.OpenExcel*"></a>
<h4 id="FarPoint_Web_Spread_SheetView_OpenExcel_System_IO_Stream_System_String_FarPoint_Excel_ExcelOpenFlags_" data-uid="FarPoint.Web.Spread.SheetView.OpenExcel(System.IO.Stream,System.String,FarPoint.Excel.ExcelOpenFlags)">OpenExcel(Stream, string, ExcelOpenFlags)</h4>
<div class="markdown level1 summary"><p>Opens an Excel file and loads the specified Excel sheet 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 sheetName, ExcelOpenFlags excelOpenFlags)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Function OpenExcel(stream As Stream, sheetName As String, excelOpenFlags As ExcelOpenFlags) 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 that contains an Excel Compound Document 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">sheetName</span></td>
      <td><p>Name of sheet in Excel to load</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="../FarPoint.Excel/FarPoint.Excel.ExcelOpenFlags.html">ExcelOpenFlags</a></td>
      <td><span class="parametername">excelOpenFlags</span></td>
      <td><p>Flags to specify file open 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></td>
    </tr>
  </tbody>
</table>


<a id="FarPoint_Web_Spread_SheetView_OpenExcel_" data-uid="FarPoint.Web.Spread.SheetView.OpenExcel*"></a>
<h4 id="FarPoint_Web_Spread_SheetView_OpenExcel_System_IO_Stream_System_String_FarPoint_Excel_ExcelOpenFlags_System_String_" data-uid="FarPoint.Web.Spread.SheetView.OpenExcel(System.IO.Stream,System.String,FarPoint.Excel.ExcelOpenFlags,System.String)">OpenExcel(Stream, string, ExcelOpenFlags, string)</h4>
<div class="markdown level1 summary"><p>Opens an Excel file and loads the specified Excel sheet 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 sheetName, ExcelOpenFlags excelOpenFlags, string password)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Function OpenExcel(stream As Stream, sheetName As String, excelOpenFlags As ExcelOpenFlags, 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 that contains an Excel Compound Document 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">sheetName</span></td>
      <td><p>Name of sheet in Excel to load</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="../FarPoint.Excel/FarPoint.Excel.ExcelOpenFlags.html">ExcelOpenFlags</a></td>
      <td><span class="parametername">excelOpenFlags</span></td>
      <td><p>Flags to specify file open options</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>The 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></td>
    </tr>
  </tbody>
</table>


<a id="FarPoint_Web_Spread_SheetView_OpenExcel_" data-uid="FarPoint.Web.Spread.SheetView.OpenExcel*"></a>
<h4 id="FarPoint_Web_Spread_SheetView_OpenExcel_System_IO_Stream_System_Int32_FarPoint_Excel_ExcelOpenFlags_" data-uid="FarPoint.Web.Spread.SheetView.OpenExcel(System.IO.Stream,System.Int32,FarPoint.Excel.ExcelOpenFlags)">OpenExcel(Stream, int, ExcelOpenFlags)</h4>
<div class="markdown level1 summary"><p>Opens an Excel file and loads the specified Excel sheet 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, ExcelOpenFlags excelOpenFlags)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Function OpenExcel(stream As Stream, excelSheetIndex As Integer, excelOpenFlags As ExcelOpenFlags) 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 that contains an Excel Compound Document File</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 Excel sheet to load</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="../FarPoint.Excel/FarPoint.Excel.ExcelOpenFlags.html">ExcelOpenFlags</a></td>
      <td><span class="parametername">excelOpenFlags</span></td>
      <td><p>Flags to specify file open 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></td>
    </tr>
  </tbody>
</table>


<a id="FarPoint_Web_Spread_SheetView_OpenExcel_" data-uid="FarPoint.Web.Spread.SheetView.OpenExcel*"></a>
<h4 id="FarPoint_Web_Spread_SheetView_OpenExcel_System_IO_Stream_System_Int32_FarPoint_Excel_ExcelOpenFlags_System_String_" data-uid="FarPoint.Web.Spread.SheetView.OpenExcel(System.IO.Stream,System.Int32,FarPoint.Excel.ExcelOpenFlags,System.String)">OpenExcel(Stream, int, ExcelOpenFlags, string)</h4>
<div class="markdown level1 summary"><p>Opens an Excel file and loads the specified Excel sheet 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, ExcelOpenFlags excelOpenFlags, string password)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Function OpenExcel(stream As Stream, excelSheetIndex As Integer, excelOpenFlags As ExcelOpenFlags, 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 that contains an Excel Compound Document File</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 Excel sheet to load</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="../FarPoint.Excel/FarPoint.Excel.ExcelOpenFlags.html">ExcelOpenFlags</a></td>
      <td><span class="parametername">excelOpenFlags</span></td>
      <td><p>Flags to specify file open options</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>The 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></td>
    </tr>
  </tbody>
</table>


<a id="FarPoint_Web_Spread_SheetView_OpenExcel_" data-uid="FarPoint.Web.Spread.SheetView.OpenExcel*"></a>
<h4 id="FarPoint_Web_Spread_SheetView_OpenExcel_System_String_System_String_FarPoint_Excel_ExcelOpenFlags_" data-uid="FarPoint.Web.Spread.SheetView.OpenExcel(System.String,System.String,FarPoint.Excel.ExcelOpenFlags)">OpenExcel(string, string, ExcelOpenFlags)</h4>
<div class="markdown level1 summary"><p>Opens an Excel file and loads the specified Excel sheet 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 sheetName, ExcelOpenFlags excelOpenFlags)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Function OpenExcel(fileName As String, sheetName As String, excelOpenFlags As ExcelOpenFlags) 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>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">sheetName</span></td>
      <td><p>Name of the sheet in the Excel file to load</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="../FarPoint.Excel/FarPoint.Excel.ExcelOpenFlags.html">ExcelOpenFlags</a></td>
      <td><span class="parametername">excelOpenFlags</span></td>
      <td><p>Flags to specify file open 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></td>
    </tr>
  </tbody>
</table>


<a id="FarPoint_Web_Spread_SheetView_OpenExcel_" data-uid="FarPoint.Web.Spread.SheetView.OpenExcel*"></a>
<h4 id="FarPoint_Web_Spread_SheetView_OpenExcel_System_String_System_String_FarPoint_Excel_ExcelOpenFlags_System_String_" data-uid="FarPoint.Web.Spread.SheetView.OpenExcel(System.String,System.String,FarPoint.Excel.ExcelOpenFlags,System.String)">OpenExcel(string, string, ExcelOpenFlags, string)</h4>
<div class="markdown level1 summary"><p>Opens an Excel file and loads the specified Excel sheet 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 sheetName, ExcelOpenFlags excelOpenFlags, string password)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Function OpenExcel(fileName As String, sheetName As String, excelOpenFlags As ExcelOpenFlags, 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>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">sheetName</span></td>
      <td><p>Name of the sheet in the Excel file to load</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="../FarPoint.Excel/FarPoint.Excel.ExcelOpenFlags.html">ExcelOpenFlags</a></td>
      <td><span class="parametername">excelOpenFlags</span></td>
      <td><p>Flags to specify file open options</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>The 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></td>
    </tr>
  </tbody>
</table>


<a id="FarPoint_Web_Spread_SheetView_OpenExcel_" data-uid="FarPoint.Web.Spread.SheetView.OpenExcel*"></a>
<h4 id="FarPoint_Web_Spread_SheetView_OpenExcel_System_String_System_Int32_FarPoint_Excel_ExcelOpenFlags_" data-uid="FarPoint.Web.Spread.SheetView.OpenExcel(System.String,System.Int32,FarPoint.Excel.ExcelOpenFlags)">OpenExcel(string, int, ExcelOpenFlags)</h4>
<div class="markdown level1 summary"><p>Opens an Excel file and loads the specified Excel sheet 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, ExcelOpenFlags excelOpenFlags)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Function OpenExcel(fileName As String, excelSheetIndex As Integer, excelOpenFlags As ExcelOpenFlags) 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>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 in the Excel file to load</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="../FarPoint.Excel/FarPoint.Excel.ExcelOpenFlags.html">ExcelOpenFlags</a></td>
      <td><span class="parametername">excelOpenFlags</span></td>
      <td><p>Flags to specify file open 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></td>
    </tr>
  </tbody>
</table>


<a id="FarPoint_Web_Spread_SheetView_OpenExcel_" data-uid="FarPoint.Web.Spread.SheetView.OpenExcel*"></a>
<h4 id="FarPoint_Web_Spread_SheetView_OpenExcel_System_String_System_Int32_FarPoint_Excel_ExcelOpenFlags_System_String_" data-uid="FarPoint.Web.Spread.SheetView.OpenExcel(System.String,System.Int32,FarPoint.Excel.ExcelOpenFlags,System.String)">OpenExcel(string, int, ExcelOpenFlags, string)</h4>
<div class="markdown level1 summary"><p>Opens an Excel file and loads the specified Excel sheet 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, ExcelOpenFlags excelOpenFlags, string password)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Function OpenExcel(fileName As String, excelSheetIndex As Integer, excelOpenFlags As ExcelOpenFlags, 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>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 in the Excel file to load</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="../FarPoint.Excel/FarPoint.Excel.ExcelOpenFlags.html">ExcelOpenFlags</a></td>
      <td><span class="parametername">excelOpenFlags</span></td>
      <td><p>Flags to specify file open options</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>The 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></td>
    </tr>
  </tbody>
</table>
</div>
