Spread Windows Forms 11.0 Product Documentation
SaveXml(Stream) Method
Example 


FarPoint.Win.Spread Assembly > FarPoint.Win.Spread Namespace > SheetView Class > SaveXml Method : SaveXml(Stream) Method
XML stream
Saves the data on the sheet to the specified XML stream.
Syntax
'Declaration
 
Public Overloads Function SaveXml( _
   ByVal xmlStream As Stream _
) As Boolean
'Usage
 
Dim instance As SheetView
Dim xmlStream As Stream
Dim value As Boolean
 
value = instance.SaveXml(xmlStream)
public bool SaveXml( 
   Stream xmlStream
)

Parameters

xmlStream
XML stream

Return Value

Boolean: true if successful; false otherwise
Example
This example saves the data as XML to a stream.
string f; 
f = "D:\\samples\\spread.xml"; 
System.IO.FileStream s = new System.IO.FileStream(f, IO.FileMode.CreateNew, IO.FileAccess.ReadWrite); 
fpSpread1.ActiveSheet.SaveXml(s); 
s.Close();
Dim f As String
f = "D:\samples\spread.xml"
Dim s As New System.IO.FileStream(f, IO.FileMode.CreateNew, IO.FileAccess.ReadWrite)
FpSpread1.ActiveSheet.SaveXml(s)
s.Close()
See Also

Reference

SheetView Class
SheetView Members
Overload List