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


FarPoint.Win.Spread Assembly > FarPoint.Win.Spread Namespace > SheetView Class > Save Method : Save(Stream,SaveXMLOptions) Method
The stream to save sheet view as XML
Whether to save option
Saves the contents of the sheet view to the specified stream.
Syntax
'Declaration
 
Public Overloads Function Save( _
   ByVal stream As Stream, _
   ByVal saveOption As SaveXMLOptions _
) As Boolean
'Usage
 
Dim instance As SheetView
Dim stream As Stream
Dim saveOption As SaveXMLOptions
Dim value As Boolean
 
value = instance.Save(stream, saveOption)
public bool Save( 
   Stream stream,
   SaveXMLOptions saveOption
)

Parameters

stream
The stream to save sheet view as XML
saveOption
Whether to save option

Return Value

TRUE if success. Otherwise, FALSE
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.
string fileName;
fileName = "c:\\controls\\test.xml";
System.IO.Stream stream;
stream = System.IO.File.Create(fileName);
fpSpread1.ActiveSheet.Save(stream, FarPoint.Win.Spread.SaveXMLOptions.All);
Dim fileName As String
fileName = "c:\controls\test.xml"
Dim stream As System.IO.Stream
stream = System.IO.File.Create(fileName)
FpSpread1.ActiveSheet.Save(stream, FarPoint.Win.Spread.SaveXMLOptions.All)
See Also

Reference

SheetView Class
SheetView Members
Overload List