FarPoint.Win.SpreadJ アセンブリ > FarPoint.Win.Spread 名前空間 > SheetView クラス > OpenExcel メソッド : OpenExcel(Stream,String,String) メソッド |
'Declaration
Public Overloads Function OpenExcel( _ ByVal stream As Stream, _ ByVal excelSheetName As String, _ ByVal password As String _ ) As Boolean
string fileName; fileName = "c:\\book1.xlsx"; System.IO.Stream stream; stream = System.IO.File.Open(fileName, System.IO.FileMode.Open); fpSpread1.Sheets[0].OpenExcel(stream, "Sheet1", "test");
Dim fileName As String fileName = "c:\book1.xlsx" Dim stream As System.IO.Stream stream = System.IO.File.Open(fileName, System.IO.FileMode.Open) FpSpread1.Sheets(0).OpenExcel(stream, "Sheet1", "test")