Spread ASP.NET 6.0 Product Documentation
Save(String,Boolean) Method
See Also  Example Send Feedback
FarPoint.Web.Spread Assembly > FarPoint.Web.Spread Namespace > SheetView 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 sheet 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 SheetView
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

Boolean: true if successful; false otherwise

Example

This example shows how to save to a file.
C#Copy Code
string FileNameXMLDOSheet = "C:\\XML\\FileXMLDataOnlySheet.xml";
string FileNameXMLSheet = "C:\\XML\\FileXMLSheet.xml";
FpSpread1.ActiveSheetView.Save(FileNameXMLDOSheet, true);
FpSpread1.ActiveSheetView.Save(FileNameXMLSheet, false);
Visual BasicCopy Code
Dim FileNameXMLDOSheet As String = "C:\XML\FileXMLDataOnlySheet.xml"
Dim FileNameXMLSheet As String = "C:\XML\FileXMLSheet.xml"
FpSpread1.ActiveSheetView.Save(FileNameXMLDOSheet, True)
FpSpread1.ActiveSheetView.Save(FileNameXMLSheet, False)

Requirements

Target Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, Windows Vista, Windows Server 2008 family

See Also

© 2002-2012 GrapeCity, Inc. All Rights Reserved.