.netCHARTING v10.5 Documentation
Example 


dotnetCHARTING Namespace > Chart Class > SaveState Method : SaveState(String) Method
Path of XML file.
SaveState(String) Method
Saves this chart instance to an xml file.
Syntax
'Declaration
 
Public Overloads Sub SaveState( _
   ByVal xmlFilePath As String _
) 
'Usage
 
Dim instance As Chart
Dim xmlFilePath As String
 
instance.SaveState(xmlFilePath)
public void SaveState( 
   string xmlFilePath
)

Parameters

xmlFilePath
Path of XML file.
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/.
Chart.SaveState("c://inetpub/wwwroot/app/temp/chart.xml",chartObj); 
Chart.SaveState("/app/temp/chart.xml",chartObj); 
Chart.SaveState("chart.xml",chartObj);
Chart.SaveState("c://inetpub/wwwroot/app/temp/chart.xml",chartObj)
Chart.SaveState("/app/temp/chart.xml",chartObj)
Chart.SaveState("chart.xml",chartObj)
Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also