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


Path and name of the file to which to save
Save xml option
Saves the content of the Spread component to the specified file.
Syntax
'Declaration
 
Public Overloads Function Save( _
   ByVal fileName As String, _
   ByVal saveOption As SaveXMLOptions _
) As Boolean
'Usage
 
Dim instance As FpSpread
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 the file to which to save
saveOption
Save xml option
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.Sheets[0].Cells[2, 2].Value = 50;
fpSpread1.Save("c:\\test.xml", FarPoint.Win.Spread.SaveXMLOptions.All);
FpSpread1.Sheets(0).Cells(2, 2).Value = 50
FpSpread1.Save("c:\test.xml", FarPoint.Win.Spread.SaveXMLOptions.All)
Requirements

Target Platforms: Windows 2000 Professional (SP4), Windows 2000 Server, Windows 2003 Server (SP1), Windows 2008, Windows XP (SP2), Windows Vista, Windows 7, Windows 8

See Also

Reference

FpSpread Class
FpSpread Members
Overload List

 

 


Copyright © GrapeCity, inc. All rights reserved.