Spread Windows Forms 11.0 Product Documentation
SaveXml(FpSpread,String,SaveXMLOptions) Method
Example 


FarPoint.Win.Spread Assembly > FarPoint.Win.Spread.Model Namespace > SpreadSerializer Class > SaveXml Method : SaveXml(FpSpread,String,SaveXMLOptions) Method
Spread component to save
Path and name of file to which to save the Spread component as XML
Whether to save to XML options
Saves an entire Spread component to an XML file.
Syntax
'Declaration
 
Public Overloads Shared Function SaveXml( _
   ByVal spread As FpSpread, _
   ByVal fileName As String, _
   ByVal saveOption As SaveXMLOptions _
) As Boolean
'Usage
 
Dim spread As FpSpread
Dim fileName As String
Dim saveOption As SaveXMLOptions
Dim value As Boolean
 
value = SpreadSerializer.SaveXml(spread, fileName, saveOption)
public static bool SaveXml( 
   FpSpread spread,
   string fileName,
   SaveXMLOptions saveOption
)

Parameters

spread
Spread component to save
fileName
Path and name of file to which to save the Spread component as XML
saveOption
Whether to save to 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.
FarPoint.Win.Spread.Model.SpreadSerializer.SaveXml(fpSpread1, "C:\\SpreadFiles\\file01.xml", FarPoint.Win.Spread.SaveXMLOptions.All);
FarPoint.Win.Spread.Model.SpreadSerializer.SaveXml(FpSpread1, "C:\SpreadFiles\file01.xml", FarPoint.Win.Spread.SaveXMLOptions.All)
See Also

Reference

SpreadSerializer Class
SpreadSerializer Members
Overload List