FarPoint.Win.SpreadJ アセンブリ > FarPoint.Win.Spread 名前空間 > FpSpread クラス > SaveExcel メソッド : SaveExcel(Stream,ExcelSaveFlags,String) メソッド |
'Declaration Public Overloads Function SaveExcel( _ ByVal stream As Stream, _ ByVal saveFlags As ExcelSaveFlags, _ ByVal password As String _ ) As Boolean
'使用法 Dim instance As FpSpread Dim stream As Stream Dim saveFlags As ExcelSaveFlags Dim password As String Dim value As Boolean value = instance.SaveExcel(stream, saveFlags, password)
例外 | 説明 |
---|---|
System.ArgumentNullException | ストリームが指定されていないか、指定されたストリームがNullです。 |
string f; f = "D:\formula1.xls"; System.IO.FileStream s = new System.IO.FileStream(f, System.IO.FileMode.Create, System.IO.FileAccess.ReadWrite); fpSpread1.SaveExcel(s, FarPoint.Excel.ExcelSaveFlags.NoFlagsSet, "test"); s.Close();
Dim f As String f = "D:\formula1.xls" Dim s As New System.IO.FileStream(f, IO.FileMode.Create,IO.FileAccess.ReadWrite) FpSpread1.SaveExcel(s, FarPoint.Excel.ExcelSaveFlags.NoFlagsSet, "test") s.Close()