'Declaration Public Overloads Shared Function GetExcelSheetNames( _ ByVal fileName As String, _ ByVal password As String _ ) As String()
Parameters
- fileName
- Path and name of file
- password
- Password of file
'Declaration Public Overloads Shared Function GetExcelSheetNames( _ ByVal fileName As String, _ ByVal password As String _ ) As String()
Exception | Description |
---|---|
System.IO.FileNotFoundException | Specified file is not found |
System.ArgumentNullException | No file name is specified (or specified file name is null) |
System.ArgumentException | No file name is specified (or specified file name is empty) |
String[] sheetNames = FarPoint.Win.Spread.FpSpread.GetExcelSheetNames("c:\\Book1.xlsx", "Test"); int i; for (i = 0; i < sheetNames.Length; i++) { listBox1.Items.Add(sheetNames[i].ToString()); }
Dim sheetNames As String() = FarPoint.Win.Spread.FpSpread.GetExcelSheetNames("c:\Book1.xlsx", "Test") Dim i As Integer For i = 0 To sheetNames.Length - 1 ListBox1.Items.Add(sheetNames(i).ToString()) Next