XY Chart NET 3 Control Reference
SaveChartDataToFile Method

Use this method to save the chart data array values to a tab delimited text file.   The entire contents of the chart data array is saved to file, along with a header line containing each profile name and its associated scale label.   This method is equivalent to selecting the Export Data button in the Toolbar.

Syntax
[Visual Basic]
Sub SaveChartDataToFile(PathAndFilename As String, Optional strDelimiter As String = vbTab, Optional bVisibleProfilesOnly As Boolean = False)
[C#]
void XYChartNETCtl.SaveChartDataToFile(System.String PathAndFilename, System.String strDelimiter, System.Boolean bVisibleProfilesOnly )
[C++]
void SaveChartDataToFile(System::String __gc *, System::String __gc *, bool)
       
Parameters
PathAndFilename
Name of the file to save the chart data to.
strDelimiter
String used to delimit the chart data.  
bVisibleProfilesOnly
Indicates if data for only visible profiles is saved or if data for all profiles is saved.
Remarks
The file can be viewed immediately in MS Excel or any other spreadsheet program.
Example
' XYChartNETCtl1 is the name of the XY Chart NET control instance placed on the form.

XYChartNETCtl1.SaveChartDataToFile("c:\data\chartdata.txt")  'Save data to file
// XYChartNETCtl1 is the name of the XY Chart NET control instance placed on the form.

XYChartNETCtl1.SaveChartDataToFile("c:\\data\\chartdata.txt", ",", false);  //Save data to file
// XYChartNETCtl1 is the name of the XY Chart NET control instance placed on the form.

XYChartNETCtl1->SaveChartDataToFile("c:\\data\\chartdata.txt", ",", false);  //Save data to file

 

The contents of the chartdata.txt file are:

 

See Also

 

 


© 2003 - 2013 ControlEng Corporation. All rights reserved.