[]
Opens an Excel file and loads the specified Excel sheet into this sheet.
public bool OpenExcel(string fileName, string sheetName)
Public Function OpenExcel(fileName As String, sheetName As String) As Boolean
Type | Name | Description |
---|---|---|
string | fileName | Name of the file to open |
string | sheetName | Name of the sheet in the Excel file to load |
Type | Description |
---|---|
bool |
Opens an Excel file and loads the specified Excel sheet into this sheet.
public bool OpenExcel(string fileName, int excelSheetIndex)
Public Function OpenExcel(fileName As String, excelSheetIndex As Integer) As Boolean
Type | Name | Description |
---|---|---|
string | fileName | Name of the file to open |
int | excelSheetIndex | Index of the sheet in the Excel file to load |
Type | Description |
---|---|
bool |
Type | Condition |
---|---|
ExcelException | Specified sheet in Excel is invalid; index must be between 0 and the number of sheets |
Opens an Excel file and load the specified Excel sheet into this sheet.
public bool OpenExcel(Stream stream, string sheetName)
Public Function OpenExcel(stream As Stream, sheetName As String) As Boolean
Type | Name | Description |
---|---|---|
Stream | stream | Stream containing an Excel Compound Document File |
string | sheetName | Name of sheet in Excel to load |
Type | Description |
---|---|
bool |
Opens an Excel file and loads the specified Excel sheet into this sheet.
public bool OpenExcel(Stream stream, int excelSheetIndex)
Public Function OpenExcel(stream As Stream, excelSheetIndex As Integer) As Boolean
Type | Name | Description |
---|---|---|
Stream | stream | Stream containing an Excel Compound Document File |
int | excelSheetIndex | Index of the Excel sheet to load |
Type | Description |
---|---|
bool |
Type | Condition |
---|---|
ExcelException | Specified sheet in Excel is invalid; index must be between 0 and the number of sheets |
Opens an Excel file and loads the specified Excel sheet into this sheet.
public bool OpenExcel(Stream stream, string sheetName, ExcelOpenFlags excelOpenFlags)
Public Function OpenExcel(stream As Stream, sheetName As String, excelOpenFlags As ExcelOpenFlags) As Boolean
Type | Name | Description |
---|---|---|
Stream | stream | Stream that contains an Excel Compound Document File |
string | sheetName | Name of sheet in Excel to load |
ExcelOpenFlags | excelOpenFlags | Flags to specify file open options |
Type | Description |
---|---|
bool |
Opens an Excel file and loads the specified Excel sheet into this sheet.
public bool OpenExcel(Stream stream, string sheetName, ExcelOpenFlags excelOpenFlags, string password)
Public Function OpenExcel(stream As Stream, sheetName As String, excelOpenFlags As ExcelOpenFlags, password As String) As Boolean
Type | Name | Description |
---|---|---|
Stream | stream | Stream that contains an Excel Compound Document File |
string | sheetName | Name of sheet in Excel to load |
ExcelOpenFlags | excelOpenFlags | Flags to specify file open options |
string | password | The password |
Type | Description |
---|---|
bool |
Opens an Excel file and loads the specified Excel sheet into this sheet.
public bool OpenExcel(Stream stream, int excelSheetIndex, ExcelOpenFlags excelOpenFlags)
Public Function OpenExcel(stream As Stream, excelSheetIndex As Integer, excelOpenFlags As ExcelOpenFlags) As Boolean
Type | Name | Description |
---|---|---|
Stream | stream | Stream that contains an Excel Compound Document File |
int | excelSheetIndex | Index of the Excel sheet to load |
ExcelOpenFlags | excelOpenFlags | Flags to specify file open options |
Type | Description |
---|---|
bool |
Opens an Excel file and loads the specified Excel sheet into this sheet.
public bool OpenExcel(Stream stream, int excelSheetIndex, ExcelOpenFlags excelOpenFlags, string password)
Public Function OpenExcel(stream As Stream, excelSheetIndex As Integer, excelOpenFlags As ExcelOpenFlags, password As String) As Boolean
Type | Name | Description |
---|---|---|
Stream | stream | Stream that contains an Excel Compound Document File |
int | excelSheetIndex | Index of the Excel sheet to load |
ExcelOpenFlags | excelOpenFlags | Flags to specify file open options |
string | password | The password |
Type | Description |
---|---|
bool |
Opens an Excel file and loads the specified Excel sheet into this sheet.
public bool OpenExcel(string fileName, string sheetName, ExcelOpenFlags excelOpenFlags)
Public Function OpenExcel(fileName As String, sheetName As String, excelOpenFlags As ExcelOpenFlags) As Boolean
Type | Name | Description |
---|---|---|
string | fileName | Name of the file to open |
string | sheetName | Name of the sheet in the Excel file to load |
ExcelOpenFlags | excelOpenFlags | Flags to specify file open options |
Type | Description |
---|---|
bool |
Opens an Excel file and loads the specified Excel sheet into this sheet.
public bool OpenExcel(string fileName, string sheetName, ExcelOpenFlags excelOpenFlags, string password)
Public Function OpenExcel(fileName As String, sheetName As String, excelOpenFlags As ExcelOpenFlags, password As String) As Boolean
Type | Name | Description |
---|---|---|
string | fileName | Name of the file to open |
string | sheetName | Name of the sheet in the Excel file to load |
ExcelOpenFlags | excelOpenFlags | Flags to specify file open options |
string | password | The password |
Type | Description |
---|---|
bool |
Opens an Excel file and loads the specified Excel sheet into this sheet.
public bool OpenExcel(string fileName, int excelSheetIndex, ExcelOpenFlags excelOpenFlags)
Public Function OpenExcel(fileName As String, excelSheetIndex As Integer, excelOpenFlags As ExcelOpenFlags) As Boolean
Type | Name | Description |
---|---|---|
string | fileName | Name of the file to open |
int | excelSheetIndex | Index of the sheet in the Excel file to load |
ExcelOpenFlags | excelOpenFlags | Flags to specify file open options |
Type | Description |
---|---|
bool |
Opens an Excel file and loads the specified Excel sheet into this sheet.
public bool OpenExcel(string fileName, int excelSheetIndex, ExcelOpenFlags excelOpenFlags, string password)
Public Function OpenExcel(fileName As String, excelSheetIndex As Integer, excelOpenFlags As ExcelOpenFlags, password As String) As Boolean
Type | Name | Description |
---|---|---|
string | fileName | Name of the file to open |
int | excelSheetIndex | Index of the sheet in the Excel file to load |
ExcelOpenFlags | excelOpenFlags | Flags to specify file open options |
string | password | The password |
Type | Description |
---|---|
bool |