See Also

Chart Class  | Chart Members  | Overload List

Language

Visual Basic

C#

Show All

xmlFilePath
Path of the XML file.
chartObject
The chart object is being serialized.
See Also Languages dotnetCHARTING Send comments on this topic.

SaveState(String,Chart) Method

Saves the chart instance to an xml file.

[Visual Basic]
Overloads Public Sub SaveState( _    ByVal xmlFilePath As String, _    ByVal chartObject As Chart _ )
[C#]
public void SaveState(    string xmlFilePath,    Chart chartObject );

Parameters

xmlFilePath
Path of the XML file.
chartObject
The chart object is being serialized.

Remarks

This first parameter takes either an absolute path 'c:/inetpub/wwwroot/app/chart.xml', a physical UNC path ('\\myUncPath\cahrt.xml'), a relative path ('temp/chart.xml',) or when started with '/' a relative path from c:/inetpub/wwwroot/ ('/app/chart.xml), or only a file name 'chart.xml' in the temp directory.

Example

This examples demonstrate different ways of saving in the same xml file in temp directory: 'c:/inetpub/wwwroot/app/temp/Chart.xml' when the applications is located in ...wwwroot/app. when started with '/' the folder resets to c:/inetpub/wwwroot/.

[C#] 

Chart.SaveState("c://inetpub/wwwroot/app/temp/chart.xml",chartObj);  
Chart.SaveState("/app/temp/chart.xml",chartObj);  
Chart.SaveState("chart.xml",chartObj); 

[Visual Basic] 

Chart.SaveState("c://inetpub/wwwroot/app/temp/chart.xml",chartObj)
Chart.SaveState("/app/temp/chart.xml",chartObj)
Chart.SaveState("chart.xml",chartObj)

See Also

Chart Class  | Chart Members  | Overload List

 

 


2002 - 2005 Webavail Productions Inc. & Corporate Web Solutions Ltd.. All Rights Reserved.