Page 1 of 1
Loading/Saving annotations
Posted: Sat Jun 24, 2006 4:47 pm
by 9336476
I would appreciate any guidance as to how I provide the capability to load/save annotations for a chart
Posted: Mon Jun 26, 2006 8:35 am
by narcis
Hi heidi,
Could you please give us more detailed information on what are you exactly trying to achieve?
Thanks in advance.
Posted: Mon Jun 26, 2006 10:34 am
by 9336476
My users are creating annotations which they would like to preserve for subsequent use on another instance of a chart
Posted: Mon Jun 26, 2006 11:33 am
by narcis
Hi heidi,
Have you tried exporting TeeChart into a template without including data? For more information please read Tutorial 12 - Exporting and Importing Charts. You'll find the tutorials at TeeChart7Manual.chm in TeeChart's Docs folder.
Loading/Saving annotations
Posted: Tue Jul 11, 2006 1:33 pm
by 9336476
What I would like to do is save/load specific properties and tools belonging to a chart such as annotations.
Posted: Tue Jul 11, 2006 1:45 pm
by narcis
Hi heidi,
That's what TeeChart template files (.tee) are used for. You can also choose wether to save chart's data or not. You'll find an example on how to use it at
this thread.
Posted: Tue Jul 11, 2006 2:16 pm
by 9336476
Sorry Narcis, I'm obviously not making myself clear. I don't want to save anything other than the annotations.
Then I can load saved annotations back into another chart. The .tee load/save templates without data saves all the other chart properties (correct me if I'm wrong)
Posted: Mon Jul 17, 2006 7:54 am
by Pep
Hi heidi,
in this case, the only way is by saving the annotation as you own, using a custom text file for example.
Loading/Saving annotations
Posted: Tue Jul 18, 2006 11:51 am
by 9336476
Yes, I am managing to do this quite successfully although I'm puzzled as to why some properties are not saved while others are. For example, when I create an Annotation I allocate it an OnClick event. It works fine when first created but if I subsequently save/load it 'loses' the OnClick event property. (Checking the saved text file, I note that it is not included so I guess it's the saving side that's faulty)
Posted: Tue Jul 18, 2006 1:18 pm
by narcis
Hi heidi,
Events are never saved, you need to set them to nil before saving and assign them again after loading saved objects.