Loading/Saving annotations

TeeChart VCL for Borland/CodeGear/Embarcadero RAD Studio, Delphi and C++ Builder.
Post Reply
heidi
Newbie
Newbie
Posts: 7
Joined: Wed Mar 17, 2004 5:00 am

Loading/Saving annotations

Post by heidi » Sat Jun 24, 2006 4:47 pm

I would appreciate any guidance as to how I provide the capability to load/save annotations for a chart

Narcís
Site Admin
Site Admin
Posts: 14730
Joined: Mon Jun 09, 2003 4:00 am
Location: Banyoles, Catalonia
Contact:

Post by Narcís » Mon Jun 26, 2006 8:35 am

Hi heidi,

Could you please give us more detailed information on what are you exactly trying to achieve?

Thanks in advance.
Best Regards,
Narcís Calvet / Development & Support
Steema Software
Avinguda Montilivi 33, 17003 Girona, Catalonia
Tel: 34 972 218 797
http://www.steema.com
Image Image Image Image Image Image
Instructions - How to post in this forum

heidi
Newbie
Newbie
Posts: 7
Joined: Wed Mar 17, 2004 5:00 am

Post by heidi » Mon Jun 26, 2006 10:34 am

My users are creating annotations which they would like to preserve for subsequent use on another instance of a chart

Narcís
Site Admin
Site Admin
Posts: 14730
Joined: Mon Jun 09, 2003 4:00 am
Location: Banyoles, Catalonia
Contact:

Post by Narcís » Mon Jun 26, 2006 11:33 am

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.
Best Regards,
Narcís Calvet / Development & Support
Steema Software
Avinguda Montilivi 33, 17003 Girona, Catalonia
Tel: 34 972 218 797
http://www.steema.com
Image Image Image Image Image Image
Instructions - How to post in this forum

heidi
Newbie
Newbie
Posts: 7
Joined: Wed Mar 17, 2004 5:00 am

Loading/Saving annotations

Post by heidi » Tue Jul 11, 2006 1:33 pm

What I would like to do is save/load specific properties and tools belonging to a chart such as annotations.

Narcís
Site Admin
Site Admin
Posts: 14730
Joined: Mon Jun 09, 2003 4:00 am
Location: Banyoles, Catalonia
Contact:

Post by Narcís » Tue Jul 11, 2006 1:45 pm

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.
Best Regards,
Narcís Calvet / Development & Support
Steema Software
Avinguda Montilivi 33, 17003 Girona, Catalonia
Tel: 34 972 218 797
http://www.steema.com
Image Image Image Image Image Image
Instructions - How to post in this forum

heidi
Newbie
Newbie
Posts: 7
Joined: Wed Mar 17, 2004 5:00 am

Post by heidi » Tue Jul 11, 2006 2:16 pm

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)

Pep
Site Admin
Site Admin
Posts: 3299
Joined: Fri Nov 14, 2003 5:00 am
Contact:

Post by Pep » Mon Jul 17, 2006 7:54 am

Hi heidi,

in this case, the only way is by saving the annotation as you own, using a custom text file for example.

heidi
Newbie
Newbie
Posts: 7
Joined: Wed Mar 17, 2004 5:00 am

Loading/Saving annotations

Post by heidi » Tue Jul 18, 2006 11:51 am

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)

Narcís
Site Admin
Site Admin
Posts: 14730
Joined: Mon Jun 09, 2003 4:00 am
Location: Banyoles, Catalonia
Contact:

Post by Narcís » Tue Jul 18, 2006 1:18 pm

Hi heidi,

Events are never saved, you need to set them to nil before saving and assign them again after loading saved objects.
Best Regards,
Narcís Calvet / Development & Support
Steema Software
Avinguda Montilivi 33, 17003 Girona, Catalonia
Tel: 34 972 218 797
http://www.steema.com
Image Image Image Image Image Image
Instructions - How to post in this forum

Post Reply