Spread for ASP.NET 11 Product Documentation
Save(Stream,Boolean) Method
Example 


FarPoint.Web.Spread Assembly > FarPoint.Web.Spread Namespace > FpSpread Class > Save Method : Save(Stream,Boolean) Method
Stream to which to save
Whether to save only data
Saves the contents of the Spread component to XML in the specified stream.
Syntax
'Declaration
 
Public Overloads Function Save( _
   ByVal stream As Stream, _
   ByVal dataOnly As Boolean _
) As Boolean
'Usage
 
Dim instance As FpSpread
Dim stream As Stream
Dim dataOnly As Boolean
Dim value As Boolean
 
value = instance.Save(stream, dataOnly)
public bool Save( 
   Stream stream,
   bool 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.
string fileName;
fileName = "D:\\mine.xml";
System.IO.Stream stream;
stream = System.IO.File.Open(fileName, System.IO.FileMode.OpenOrCreate);
FpSpread1.Save(stream, true);
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)
See Also

Reference

FpSpread Class
FpSpread Members
Overload List

User-Task Documentation

Saving to a Spread XML File