Save / Load chart settings
Posted: Mon Jan 29, 2007 5:39 pm
TeeChart 7.07 w/ Delphi 6
Does either TeeChart 7 or the upcoming TeeChart 8 provide an export AND import of the chart's settings to any file format? In looking at version 7 and playing with the version 8 beta a bit, I noticed the TeeSaveToXAMLFile and TeeSaveToVMLFile procedures but I could not see anything about LOADING these saved settings back into a TChart object.
In my company's application, we allow the users to "fine tune" the appearance of the chart to suite their needs, including changing series types of the data, colors, fonts, titles, background, etc... Pretty much any customizations TeeChart Pro supports, we offer to the user as well.
We have been asked to provide an unlimited UNDO and REDO feature that would respect each option we allow the user to change. What I was considering doing for this was exporting all of the chart's settings to an XML file (for example) whenever a setting was changed. Then, to "undo" a change, I would simply import the contents of a previously saved XML file, replacing my existing settings.
Is something like this available or would I need to roll my own export/import for this?
Does either TeeChart 7 or the upcoming TeeChart 8 provide an export AND import of the chart's settings to any file format? In looking at version 7 and playing with the version 8 beta a bit, I noticed the TeeSaveToXAMLFile and TeeSaveToVMLFile procedures but I could not see anything about LOADING these saved settings back into a TChart object.
In my company's application, we allow the users to "fine tune" the appearance of the chart to suite their needs, including changing series types of the data, colors, fonts, titles, background, etc... Pretty much any customizations TeeChart Pro supports, we offer to the user as well.
We have been asked to provide an unlimited UNDO and REDO feature that would respect each option we allow the user to change. What I was considering doing for this was exporting all of the chart's settings to an XML file (for example) whenever a setting was changed. Then, to "undo" a change, I would simply import the contents of a previously saved XML file, replacing my existing settings.
Is something like this available or would I need to roll my own export/import for this?