How to export/import chart properties only

TeeChart for ActiveX, COM and ASP
Post Reply
sungard
Newbie
Newbie
Posts: 2
Joined: Fri May 21, 2004 4:00 am

How to export/import chart properties only

Post by sungard » Mon Jan 21, 2008 8:29 pm

Is there any way to export / import only the chart properties excluding series values?

I want to save only the design information and draw a chart with the same design with different series data values later.

Thanks

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 Jan 22, 2008 9:25 am

Hi sungard,

Yes, this is possible. You can export TeeChart to a native template file (.tee) or a memory stream as told in Tutorial 12 - Exporting and Importing Charts. When exporting a TeeChart template you can choose whether you want to include series data on it or not.
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

sungard
Newbie
Newbie
Posts: 2
Joined: Fri May 21, 2004 4:00 am

Post by sungard » Tue Jan 22, 2008 4:35 pm

Thanks for the reply.
By the way, I'm using the 'TeeChartPro v6 ActiveX Control', and the tutorial doesn't seem to have the information.

It has the information about how to export/import 'Tee' files, but doesn't have information how to exclude the series data.

Is this supported in v6 or above?

Thanks again

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

Post by Narcís » Wed Jan 23, 2008 11:31 am

Hi sungard,

Yes, this is supported in v6 and method's help file description is this:

procedure SaveToFile(Const FileName: WideString; IncludeData: WordBool);

Description
This method will save the current chart as a native TeeChart 'tee' template to the specified File Name. Use the IncludeData boolean property to include or exclude data from the tee file.
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