SaveChartToFile and LoadChartFromFile functionality

TeeChart VCL for Borland/CodeGear/Embarcadero RAD Studio, Delphi and C++ Builder.
Post Reply
beetle
Newbie
Newbie
Posts: 59
Joined: Fri Dec 12, 2003 5:00 am

SaveChartToFile and LoadChartFromFile functionality

Post by beetle » Thu Aug 05, 2004 6:58 pm

Hi,
Several weeks ago I asked about a functionality limitation of SaveChartToFile()
procedure. That limitation consists in:

SaveChartToFile() only saves properties with value different from default
value for that property.(For example: If you save a chart and its legend is not
visible, SaveChartToFile() will save the line "Legend.Visible=False", but if
the chart legend is visible SaveChartToFile will not save the line
"Legend.Visible=True" because "True" is the default value for Legend.Visible.
That is not a problem if each Chart uses is own file. Problem comes when you
use the same file for more than one Charts. In the previous example, if you
save a Chart which has the property Legend.Visible=True and then you load this file
into a Chart which has the property Legend.Visible=False, this Chart will still have
its legend hidden.
However, there is something weird, <b>this problem only happens with Chart properties,
with Series properties it works!! </b>so, I wonder... if it works with Series, how
could I fix the problem in Chart properties?
Any ideas to fix the problem modifying TeeChart Source Code?

Another similar problem happens with events. Chart events are recovered, but Series
events are not recovered.

Any ideas?

Thanks in advance.

Beetle.

Post Reply