Saves the data on the sheet to the specified XML stream.
Syntax
Visual Basic (Usage) | Copy Code |
---|
Dim instance As SheetView
Dim xmlStream As Stream
Dim value As Boolean
value = instance.SaveXml(xmlStream) |
Parameters
- xmlStream
- XML stream
Return Value
Boolean:
true if successful;
false otherwise
Example
This example saves the data as XML to a stream.
C# | Copy Code |
---|
string f;
f = "D:\\samples\\spread.xml";
System.IO.FileStream s = new System.IO.FileStream(f, IO.FileMode.CreateNew, IO.FileAccess.ReadWrite);
fpSpread1.ActiveSheet.SaveXml(s);
s.Close(); |
Visual Basic | Copy Code |
---|
Dim f As String
f = "D:\samples\spread.xml"
Dim s As New System.IO.FileStream(f, IO.FileMode.CreateNew, IO.FileAccess.ReadWrite)
FpSpread1.ActiveSheet.SaveXml(s)
s.Close() |
Requirements
Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2
See Also