Spread Windows Forms 6.0 Product Documentation
SaveXml(String,String) Method
See Also  Example Support Options
FarPoint.Win.Spread Assembly > FarPoint.Win.Spread Namespace > SheetView Class > SaveXml Method : SaveXml(String,String) Method


xmlFileName
Path and name of XML file
schemaFileName
Path and name of schema file

Glossary Item Box

Saves the data on the sheet to the specified XML file and the schema to the specified schema file.

Syntax

Visual Basic (Declaration) 
Public Overloads Function SaveXml( _
   ByVal xmlFileName As String, _
   ByVal schemaFileName As String _
) As Boolean
Visual Basic (Usage)Copy Code
Dim instance As SheetView
Dim xmlFileName As String
Dim schemaFileName As String
Dim value As Boolean
 
value = instance.SaveXml(xmlFileName, schemaFileName)
C# 
public bool SaveXml( 
   string xmlFileName,
   string schemaFileName
)

Parameters

xmlFileName
Path and name of XML file
schemaFileName
Path and name of schema file

Return Value

Boolean: true if successful; false otherwise

Example

This example saves the raw data as XML to a file and its associated schema to a file.
C#Copy Code
fpSpread1.ActiveSheet.SaveXml("D:\\samples\\spread.xml", "D:\\samples\\spread.xsd");
Visual BasicCopy Code
FpSpread1.ActiveSheet.SaveXml("D:\samples\spread.xml", "D:\samples\spread.xsd")

Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

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