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


xmlStream
XML stream
schemaStream
Schema stream

Glossary Item Box

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

Syntax

Visual Basic (Declaration) 
Public Overloads Function SaveXml( _
   ByVal xmlStream As Stream, _
   ByVal schemaStream As Stream _
) As Boolean
Visual Basic (Usage)Copy Code
Dim instance As SheetView
Dim xmlStream As Stream
Dim schemaStream As Stream
Dim value As Boolean
 
value = instance.SaveXml(xmlStream, schemaStream)
C# 
public bool SaveXml( 
   Stream xmlStream,
   Stream schemaStream
)

Parameters

xmlStream
XML stream
schemaStream
Schema stream

Return Value

Boolean: true if successful; false otherwise

Example

This example saves the data as XML to a stream and the associated schema to a stream.
C#Copy Code
string xl; 
string schema; 
xl = "D:\\samples\\spread.xml"; 
schema = "D:\\samples\\schema.xsd"; 
System.IO.FileStream s = new System.IO.FileStream(xl, IO.FileMode.CreateNew, IO.FileAccess.ReadWrite); 
System.IO.FileStream s1 = new System.IO.FileStream(schema, IO.FileMode.CreateNew, IO.FileAccess.ReadWrite); 
fpSpread1.ActiveSheet.SaveXml(s, s1); 
s.Close(); 
s1.Close();
Visual BasicCopy Code
Dim xl As String
Dim schema As String
xl = "D:\samples\spread.xml"
schema = "D:\samples\schema.xsd"
Dim s As New System.IO.FileStream(xl, IO.FileMode.CreateNew, IO.FileAccess.ReadWrite)
Dim s1 As New System.IO.FileStream(schema, IO.FileMode.CreateNew, IO.FileAccess.ReadWrite)
FpSpread1.ActiveSheet.SaveXml(s, s1)
s.Close()
s1.Close()

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.