Spread for ASP.NET 7.0 Product Documentation
Save(String,Boolean) Method
See Also  Example Support Options
FarPoint.Web.Spread Assembly > FarPoint.Web.Spread Namespace > FpSpread Class > Save Method : Save(String,Boolean) Method


fileName
Path and file name of file to save
dataOnly
Whether to save only data

Glossary Item Box

Saves the contents of the Spread component to XML in the specified file.

Syntax

Visual Basic (Declaration) 
Public Overloads Function Save( _
   ByVal fileName As String, _
   ByVal dataOnly As Boolean _
) As Boolean
Visual Basic (Usage)Copy Code
Dim instance As FpSpread
Dim fileName As String
Dim dataOnly As Boolean
Dim value As Boolean
 
value = instance.Save(fileName, dataOnly)
C# 
public bool Save( 
   string fileName,
   bool dataOnly
)

Parameters

fileName
Path and file name of file 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";
FpSpread1.Save(fileName, true);
Visual BasicCopy Code
Dim fileName As String
fileName = "D:\mine.xml"
FpSpread1.Save(fileName, 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

© 2002-2014 ComponentOne, a division of GrapeCity. All Rights Reserved.