Saves the contents of the Spread component to XML in the specified stream.
Syntax
Visual Basic (Usage) | Copy Code |
---|
Dim instance As FpSpread
Dim stream As Stream
Dim dataOnly As Boolean
Dim value As Boolean
value = instance.Save(stream, dataOnly) |
Parameters
- stream
- Stream to which to save
- dataOnly
- Whether to save only data
Return Value
true if successful;
false otherwise
Example
This examples saves the data only from the component to the specified Spread XML file.
C# | Copy Code |
---|
string fileName;
fileName = "D:\\mine.xml";
System.IO.Stream stream;
stream = System.IO.File.Open(fileName, System.IO.FileMode.OpenOrCreate);
FpSpread1.Save(stream, true);
|
Visual Basic | Copy Code |
---|
Dim fileName As String
fileName = "D:\mine.xml"
Dim stream As System.IO.Stream
stream = System.IO.File.Open(fileName, System.IO.FileMode.OpenOrCreate)
FpSpread1.Save(stream, True) |
Requirements
Target Platforms: Windows 7, Windows 8, Windows Vista, Windows Server 2000, Windows 2000 Professional, Windows XP Professional, Windows NT 4.0 Workstation, SP6, Windows NT 4.0 Server, SP6
See Also