Spread for ASP.NET 9.0 Product Documentation
Save(String,Boolean) Method
Example 


Path and file name of file to save
Whether to save only data
Saves the contents of the sheet to XML in the specified file.
Syntax
'Declaration
 
Public Overloads Function Save( _
   ByVal fileName As String, _
   ByVal dataOnly As Boolean _
) As Boolean
'Usage
 
Dim instance As SheetView
Dim fileName As String
Dim dataOnly As Boolean
Dim value As Boolean
 
value = instance.Save(fileName, dataOnly)
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.
string FileNameXMLDOSheet = "C:\\XML\\FileXMLDataOnlySheet.xml";
string FileNameXMLSheet = "C:\\XML\\FileXMLSheet.xml";
FpSpread1.ActiveSheetView.Save(FileNameXMLDOSheet, true);
FpSpread1.ActiveSheetView.Save(FileNameXMLSheet, false);
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 7, Windows 8, Windows 10, Windows Vista, Windows Server 2003, Windows Server 2008, Windows Server 2012, Windows XP Professional

See Also

Reference

SheetView Class
SheetView Members
Overload List

 

 


Copyright © GrapeCity, inc. All rights reserved.