LoadChartFromFile/SaveChartToFile help needed!
Posted: Tue Aug 30, 2016 12:03 pm
Hi,
I am desperately seeking a way to both save and load chart settings without data as well as with. I understand that SaveChartToFile can be paramaterised so that only the chart settings are exported - and not the data - which is ideal. However, when loading the settings back in I find that the chart no longer works with my code, flagging invliad references to the TLineSeries object that was there previously. If I reference the TChartSeries - e.g. Chart1.Series[0] - then it works but my code is deisgned to interact with the TLineSeries object (Series1) and I would ideally not like to change this. Is there something I an do to get round this issue?
I am desperately seeking a way to both save and load chart settings without data as well as with. I understand that SaveChartToFile can be paramaterised so that only the chart settings are exported - and not the data - which is ideal. However, when loading the settings back in I find that the chart no longer works with my code, flagging invliad references to the TLineSeries object that was there previously. If I reference the TChartSeries - e.g. Chart1.Series[0] - then it works but my code is deisgned to interact with the TLineSeries object (Series1) and I would ideally not like to change this. Is there something I an do to get round this issue?