FarPoint.Win.SpreadJ アセンブリ > FarPoint.Win.Spread 名前空間 > SheetView クラス > SaveXml メソッド : SaveXml(Stream,Stream) メソッド |
'Declaration Public Overloads Function SaveXml( _ ByVal xmlStream As Stream, _ ByVal schemaStream As Stream _ ) As Boolean
'使用法 Dim instance As SheetView Dim xmlStream As Stream Dim schemaStream As Stream Dim value As Boolean value = instance.SaveXml(xmlStream, schemaStream)
public bool SaveXml( Stream xmlStream, Stream schemaStream )
string xl; string schema; xl = "D:\\samples\\spread.xml"; schema = "D:\\samples\\schema.xsd"; System.IO.FileStream s = new System.IO.FileStream(xl, IO.FileMode.CreateNew, IO.FileAccess.ReadWrite); System.IO.FileStream s1 = new System.IO.FileStream(schema, IO.FileMode.CreateNew, IO.FileAccess.ReadWrite); fpSpread1.ActiveSheet.SaveXml(s, s1); s.Close(); s1.Close();
Dim xl As String Dim schema As String xl = "D:\samples\spread.xml" schema = "D:\samples\schema.xsd" Dim s As New System.IO.FileStream(xl, IO.FileMode.CreateNew, IO.FileAccess.ReadWrite) Dim s1 As New System.IO.FileStream(schema, IO.FileMode.CreateNew, IO.FileAccess.ReadWrite) FpSpread1.ActiveSheet.SaveXml(s, s1) s.Close() s1.Close()