Spread Windows Forms 10.0 Product Documentation
SaveXml(SheetView,Stream,Boolean) Method
Example 


The sheet view to save
Stream to which to save the sheet view as XML
Whether to save only the data in the sheet view
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 dataOnly As Boolean _
) As Boolean
'Usage
 
Dim sheetView As SheetView
Dim stream As Stream
Dim dataOnly As Boolean
Dim value As Boolean
 
value = SpreadSerializer.SaveXml(sheetView, stream, dataOnly)
public static bool SaveXml( 
   SheetView sheetView,
   Stream stream,
   bool dataOnly
)

Parameters

sheetView
The sheet view to save
stream
Stream to which to save the sheet view as XML
dataOnly
Whether to save only the data in the sheet view
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, false);
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, False)
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.