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


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)
Requirements

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

See Also

Reference

SpreadSerializer Class
SpreadSerializer Members
Overload List

 

 


Copyright © GrapeCity, inc. All rights reserved.