Page 1 of 1

SaveChartToStream problem

Posted: Mon Jan 24, 2005 3:53 pm
by 8577008
Hello,

I want to save chart data and settings with SaveChartToStream function. This step seems to work fine. However when I want to load the saved stream into a new chart I get error messages 'Class TPointSeries not found', 'Class TBarSeries not found'... If I use the same procedure without series (empty dummy chart) I don't get any error.
Have I to call some TChart initialization function before loading the stream?

Thank you,
JM Biollaz

Posted: Mon Jan 24, 2005 4:17 pm
by Marjan
Hi.
Have I to call some TChart initialization function before loading the stream?
Before loading chart you have to register all series/tools classes you originally exported. This can be done by using RegisterTeeSeries(...) and RegisterTeeTool(...) routines. Or (much better and simpler solution) by including the TeeEditPRO unit to the import form Uses section. Including TeeEditPRO automatically registers all series/tool types.