Dundas Chart for ASP.NET
Save(XmlWriter) Method
See Also  Example Send comments on this topic.
Dundas.Charting.WebControl Namespace > ChartSerializer Class > Save Method : Save(XmlWriter) Method


writer

An object derived from XMLWriter  used to save Chart properties.


XML writer to save the data.

Saves chart data and properties with non-default values to the given object that is derived from the XMLWriter class.


Saves all properties of the chart into the XML writer. By setting Content or SerializableContent/NonSerializableContent properties specific set of properties can be saved.

Syntax

Visual Basic (Declaration)  
Public Overloads Sub Save( _
   ByVal writer As XmlWriter _
) 
Visual Basic (Usage) Copy Code
Dim instance As ChartSerializer
Dim writer As XmlWriter
 
instance.Save(writer)
C#  
public void Save( 
   XmlWriter writer
)

Parameters

writer

An object derived from XMLWriter  used to save Chart properties.


XML writer to save the data.

Example

The following example serializes all appearance data to disk (only properties with non-default values are ever serialized).

Visual Basic Copy Code
Imports Dundas.Charting.WebControlImports System.XmlImports System.Text
...

Dim myWriter As New XmlTextWriter("c:\inetpub\wwwroot\DundasChartSamples\MyPersistedData3.xml", Encoding.ASCII)
Chart1.Serializer.Save(myWriter)

Remarks

By default all chart properties with non-default values (this includes data points) will be serialized when this method is called. To control what chart characteristics are serialized use the ContentSerializableContent and NonSerializableContent properties.

When using this definition the format (set by the Format property) must be XML.

When working with XML format text files for simplicity use the Save definition that takes a fileName string parameter instead.

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

Copyright © 2001 - 2009 Dundas Data Visualization, Inc. and others.