XY Chart NET 3 Control Reference > Methods > 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.
[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) |
' 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: