Questions regarding LoadGraphOptions
Posted: Mon Jun 13, 2022 4:37 pm
I have some questions about loading TChart options from previously saved *.tee files.
The tee files have been saved using a call like this:
The false flag means that the data in the graph is NOT included in the tee file (which I have checked).
When I use the function LoadChartFromFile(Chart, filename) to reinstate the graph's options, the data disappears from my chart (but the options saved in the tee file are applied as expected).
Q1. What do I have to do to redraw the graph with the new options?
Q2. What function should I call to load the graph options from a previously saved XML file?
I would prefer to save the graph options in XML format, using using a call like this:
where the final true flag denotes inclusion of the XML header.
However, I cannot find a function that allows me to load the options from this XML file. There is no LoadChartFromXMLFile function, AFAIK, and the LoadChartFromFile function issues an error if it is passed an XML file.
What am I missing here?
Thanks in advance fort any help anyone can give.
Andrew
The tee files have been saved using a call like this:
Code: Select all
SaveChartToFile(Chart, filename, false, true);
When I use the function LoadChartFromFile(Chart, filename) to reinstate the graph's options, the data disappears from my chart (but the options saved in the tee file are applied as expected).
Q1. What do I have to do to redraw the graph with the new options?
Q2. What function should I call to load the graph options from a previously saved XML file?
I would prefer to save the graph options in XML format, using using a call like this:
Code: Select all
SaveChartToXMLFile(Chart, filename, false, true);
However, I cannot find a function that allows me to load the options from this XML file. There is no LoadChartFromXMLFile function, AFAIK, and the LoadChartFromFile function issues an error if it is passed an XML file.
What am I missing here?
Thanks in advance fort any help anyone can give.
Andrew