dotnetCHARTING Send comments on this topic.
SaveState(String) Method
See Also  Example
dotnetCHARTING Namespace > Chart Class > SaveState Method : SaveState(String) Method


xmlFilePath
Path of XML file.
Saves this chart instance to an xml file.

Syntax

Visual Basic (Declaration) 
Overloads Public Sub SaveState( _
   ByVal xmlFilePath As String _
) 
Visual Basic (Usage)Copy Code
Dim instance As Chart
Dim xmlFilePath As String
 
instance.SaveState(xmlFilePath)
C# 
public void SaveState( 
   string xmlFilePath
)

Parameters

xmlFilePath
Path of XML file.

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#Copy Code
Chart.SaveState("c://inetpub/wwwroot/app/temp/chart.xml",chartObj);  
Chart.SaveState("/app/temp/chart.xml",chartObj);  
Chart.SaveState("chart.xml",chartObj); 
    
Visual BasicCopy Code
Chart.SaveState("c://inetpub/wwwroot/app/temp/chart.xml",chartObj)
Chart.SaveState("/app/temp/chart.xml",chartObj)
Chart.SaveState("chart.xml",chartObj)

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.

See Also