Page 1 of 1

How to export/import chart properties only

Posted: Mon Jan 21, 2008 8:29 pm
by 9082574
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

Posted: Tue Jan 22, 2008 9:25 am
by narcis
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.

Posted: Tue Jan 22, 2008 4:35 pm
by 9082574
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

Posted: Wed Jan 23, 2008 11:31 am
by narcis
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.