PowerTools SPREAD for ASP.NET 8.0J
SaveExcel(Stream,String) メソッド

ファイルをExcel Compound Storageファイルとして保存するストリーム
ファイルのパスワード
Spreadコンポーネントの内容をストリーム内の指定したExcelファイルに保存します。
構文
'Declaration
 
Public Overloads Function SaveExcel( _
   ByVal stream As Stream, _
   ByVal password As String _
) As Boolean
public bool SaveExcel( 
   Stream stream,
   string password
)

パラメータ

stream
ファイルをExcel Compound Storageファイルとして保存するストリーム
password
ファイルのパスワード
次のサンプルコードは、SaveExcelメソッドを使用します。
string f;
f = "D:\savexcel.xls";
System.IO.FileStream s = new System.IO.FileStream(f, IO.FileMode.OpenorCreate, IO.FileAccess.ReadWrite);
FpSpread1.SaveExcel(s, "test");
Dim f As String
f = "D:\savexcel.xls"
Dim s As New System.IO.FileStream(f, IO.FileMode.OpenOrCreate, IO.FileAccess.ReadWrite)
FpSpread1.SaveExcel(s, "test")
参照

FpSpread クラス
FpSpread メンバ
オーバーロード一覧

 

 


© 2003-2015, GrapeCity inc. All rights reserved.