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