Set the chart object from the specified xml file.
            
            
            
            
Syntax
| Visual Basic (Usage) |  Copy Code | 
|---|
Dim instance As Chart
Dim xmlDataOrFileName As String
Dim chartObject As Chart
Dim clear As Boolean
 
instance.LoadState(xmlDataOrFileName, chartObject, 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.
 
            
             
            
            
            
            
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# |  Copy Code | 
|---|
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 |  Copy Code | 
|---|
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) 
 | 
 
 
            
            Remarks
            
            
            
See Also