See Also

Chart Class  | Chart Members  | Overload List

Language

Visual Basic

C#

Show All

xmlDataOrFileName
Path of XML file or XML data to load.
chartObject
The chart object that be loaded with XML data.
clear
Determine whether clear the chart object before loading the data.
See Also Languages dotnetCHARTING Send comments on this topic.

LoadState(String,Chart,Boolean) Method

Set the chart object from the specified xml file.

[Visual Basic]
Overloads Public Sub LoadState( _    ByVal xmlDataOrFileName As String, _    ByVal chartObject As Chart, _    ByVal clear As Boolean _ )
[C#]
public void LoadState(    string xmlDataOrFileName,    Chart chartObject,    bool clear );

Parameters

xmlDataOrFileName
Path of XML file or XML data to load.
chartObject
The chart object that be loaded with XML data.
clear
Determine whether clear the chart object before loading the data.

Remarks

This first parameter takes either a raw xml string or an xml file name. For an xml file name it 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 accessing 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.LoadState("c://inetpub/wwwroot/app/temp/chart.xml",chartObject,false); 
Chart.LoadState("/app/temp/chart.xml",chartObject,false); 
Chart.LoadState("chart.xml",chartObject,false);

[Visual Basic] 

Chart.LoadState("c://inetpub/wwwroot/app/temp/chart.xml",chartObject,false)
Chart.LoadState("/app/temp/chart.xml",chartObject,false)
Chart.LoadState("chart.xml",chartObject,false)

See Also

Chart Class  | Chart Members  | Overload List

 

 


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