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


FarPoint.Win.Spread Assembly > FarPoint.Win.Spread Namespace > SheetView Class > Save Method : Save(String,SaveXMLOptions) Method
Path and name of file to which to save
Save xml option
Saves the contents of the sheet view to the specified file.
Syntax
'Declaration
 
Public Overloads Function Save( _
   ByVal fileName As String, _
   ByVal saveOption As SaveXMLOptions _
) As Boolean
'Usage
 
Dim instance As SheetView
Dim fileName As String
Dim saveOption As SaveXMLOptions
Dim value As Boolean
 
value = instance.Save(fileName, saveOption)
public bool Save( 
   string fileName,
   SaveXMLOptions saveOption
)

Parameters

fileName
Path and name of file to which to save
saveOption
Save xml option

Return Value

True if successfull; false otherwise
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.
fpSpread1.ActiveSheet.Save("c:\\controls\\test.xml", FarPoint.Win.Spread.SaveXMLOptions.All);
FpSpread1.ActiveSheet.Save("c:\controls\test.xml", FarPoint.Win.Spread.SaveXMLOptions.All)
See Also

Reference

SheetView Class
SheetView Members
Overload List