Spread Windows Forms 12.0 Product Documentation
SaveXml(SheetView,Stream,Boolean) Method
Example 


FarPoint.Win.Spread Assembly > FarPoint.Win.Spread.Model Namespace > SpreadSerializer Class > SaveXml Method : SaveXml(SheetView,Stream,Boolean) Method
The sheet view to save
Stream to which to save the sheet view as XML
Whether to save only the data in the sheet view
Saves an entire sheet view to an XML stream.
Syntax
'Declaration
 
Public Overloads Shared Function SaveXml( _
   ByVal sheetView As SheetView, _
   ByVal stream As Stream, _
   ByVal dataOnly As Boolean _
) As Boolean
'Usage
 
Dim sheetView As SheetView
Dim stream As Stream
Dim dataOnly As Boolean
Dim value As Boolean
 
value = SpreadSerializer.SaveXml(sheetView, stream, dataOnly)
public static bool SaveXml( 
   SheetView sheetView,
   Stream stream,
   bool dataOnly
)

Parameters

sheetView
The sheet view to save
stream
Stream to which to save the sheet view as XML
dataOnly
Whether to save only the data in the sheet view
Example
This example saves to an XML file.
System.IO.Stream stream;
stream = System.IO.File.Create("C:\\SpreadFiles\\file01.xml");
FarPoint.Win.Spread.Model.SpreadSerializer.SaveXml(fpSpread1.Sheets[0], stream, false);
Dim stream As System.IO.Stream
stream = System.IO.File.Create("C:\SpreadFiles\file01.xml")
FarPoint.Win.Spread.Model.SpreadSerializer.SaveXml(FpSpread1.Sheets(0), stream, False)
See Also

Reference

SpreadSerializer Class
SpreadSerializer Members
Overload List