[]
Gets an array of sheet names from the specified Excel stream.
public static string[] GetExcelSheetNames(Stream stream)
Public Shared Function GetExcelSheetNames(stream As Stream) As String()
| Type | Name | Description |
|---|---|---|
| Stream | stream | Stream that contains an Excel Compound Document File |
| Type | Description |
|---|---|
| string[] | An array of sheet names. |
| Type | Condition |
|---|---|
| ArgumentNullException | No stream specified or specified stream is null |
| ArgumentException | No stream specified or specified stream is empty |
Gets an array of sheet names from the specified Excel stream.
public static string[] GetExcelSheetNames(Stream stream, string password)
Public Shared Function GetExcelSheetNames(stream As Stream, password As String) As String()
| Type | Name | Description |
|---|---|---|
| Stream | stream | Stream that contains an Excel Compound Document File |
| string | password | File password |
| Type | Description |
|---|---|
| string[] | An array of sheet names. |
| Type | Condition |
|---|---|
| ArgumentNullException | No stream specified or specified stream is null |
| ArgumentException | No stream specified or specified stream is empty |
Gets an array of sheet names from the specified Excel-compatible file.
public static string[] GetExcelSheetNames(string fileName)
Public Shared Function GetExcelSheetNames(fileName As String) As String()
| Type | Name | Description |
|---|---|---|
| string | fileName | Path and name of file |
| Type | Description |
|---|---|
| string[] | n array of sheet names. |
| Type | Condition |
|---|---|
| FileNotFoundException | Specified file is not found |
| ArgumentNullException | No file name is specified (or specified file name is null) |
| ArgumentException | No file name is specified (or specified file name is empty) |
Gets an array of sheet names from the specified Excel-compatible file.
public static string[] GetExcelSheetNames(string fileName, string password)
Public Shared Function GetExcelSheetNames(fileName As String, password As String) As String()
| Type | Name | Description |
|---|---|---|
| string | fileName | Path and name of file |
| string | password | Password of file |
| Type | Description |
|---|---|
| string[] | An array of sheet names. |
| Type | Condition |
|---|---|
| FileNotFoundException | Specified file is not found |
| ArgumentNullException | No file name is specified (or specified file name is null) |
| ArgumentException | No file name is specified (or specified file name is empty) |