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


FarPoint.Win.Spread Assembly > FarPoint.Win.Spread.Model Namespace > SpreadSerializer Class > SaveXml Method : SaveXml(SheetView,Stream,SaveXMLOptions) Method
The sheet view to save
Stream to which to save the sheet view as XML
Whether Saving xml options
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 saveOption As SaveXMLOptions _
) As Boolean
'Usage
 
Dim sheetView As SheetView
Dim stream As Stream
Dim saveOption As SaveXMLOptions
Dim value As Boolean
 
value = SpreadSerializer.SaveXml(sheetView, stream, saveOption)
public static bool SaveXml( 
   SheetView sheetView,
   Stream stream,
   SaveXMLOptions saveOption
)

Parameters

sheetView
The sheet view to save
stream
Stream to which to save the sheet view as XML
saveOption
Whether Saving xml options
Remarks
If the control has many duplicate style settings, then you may wish to use the AllAndStyleMerging option in the SaveXMLOptions enumeration when saving to an XML file. This decreases the file size and improves performance.
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, FarPoint.Win.Spread.SaveXMLOptions.All);
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, FarPoint.Win.Spread.SaveXMLOptions.All)
See Also

Reference

SpreadSerializer Class
SpreadSerializer Members
Overload List