Spread Windows Forms 6.0 Product Documentation
SaveXml(FpSpread,Stream,Boolean) Method
See Also  Example Support Options
FarPoint.Win.Spread Assembly > FarPoint.Win.Spread.Model Namespace > SpreadSerializer Class > SaveXml Method : SaveXml(FpSpread,Stream,Boolean) Method


spread
Spread component to save
stream
Stream to which to save the Spread component as XML
dataOnly
Whether to save only the data in the Spread component

Glossary Item Box

Saves an entire Spread component to an XML stream.

Syntax

Visual Basic (Declaration) 
Public Overloads Shared Function SaveXml( _
   ByVal spread As FpSpread, _
   ByVal stream As Stream, _
   ByVal dataOnly As Boolean _
) As Boolean
Visual Basic (Usage)Copy Code
Dim spread As FpSpread
Dim stream As Stream
Dim dataOnly As Boolean
Dim value As Boolean
 
value = SpreadSerializer.SaveXml(spread, stream, dataOnly)
C# 
public static bool SaveXml( 
   FpSpread spread,
   Stream stream,
   bool dataOnly
)

Parameters

spread
Spread component to save
stream
Stream to which to save the Spread component as XML
dataOnly
Whether to save only the data in the Spread component

Return Value

Boolean: true if successful; false otherwise

Example

This example saves a spread XML file.
C#Copy Code
System.IO.Stream stream;
stream = System.IO.File.Create("D:\\SpreadFiles\\file01.xml", System.IO.FileMode.Create);
FarPoint.Win.Spread.Model.SpreadSerializer.SaveXml(fpSpread1, stream, false);
Visual BasicCopy Code
Dim s As New FarPoint.Win.Spread.Model.SpreadSerializer
Dim stream As System.IO.Stream
stream = System.IO.File.Create("D:\SpreadFiles\file01.xml", System.IO.FileMode.OpenOrCreate)
s.SaveXml(FpSpread1, stream, False)

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.