SaveChartToStream problem

TeeChart VCL for Borland/CodeGear/Embarcadero RAD Studio, Delphi and C++ Builder.
Post Reply
JMBiollaz
Newbie
Newbie
Posts: 6
Joined: Fri Nov 15, 2002 12:00 am
Contact:

SaveChartToStream problem

Post by JMBiollaz » Mon Jan 24, 2005 3:53 pm

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

Marjan
Site Admin
Site Admin
Posts: 745
Joined: Fri Nov 07, 2003 5:00 am
Location: Slovenia
Contact:

Post by Marjan » Mon Jan 24, 2005 4:17 pm

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.
Marjan Slatinek,
http://www.steema.com

Post Reply