Page 1 of 1

SaveChartToFile and LoadChartFromFile functionality

Posted: Thu Aug 05, 2004 6:58 pm
by 9335230
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.