Page 1 of 1

LoadChartFromFile results in Exceptions

Posted: Wed Jan 05, 2005 2:14 pm
by 8574083
Using teechart pro ver 6.01
I place a chart on a form, set up a couple of series and add two buttons.
Button1 calls SaveChartToFile
Button2 Calls LoadChartFromFile
I do not add any data to the chart or modify any default properties.
I press Button1 and then press Button2. During LoadChartFromFile I get EClassNotFound with message 'Class TFastLineSeries not found'

This is a replication of the problem I'm seeing in my main form
Never ran into this prior to converting from D5 to D7 AFAIK

Posted: Wed Jan 05, 2005 7:48 pm
by 9234468
I had the same problem with TeechartPro 7 under Delphi 5 and 7. I discovered that unit TeeEdit must be included in uses clause, otherwise runtime error "Class XXXseries not found" appears during LoadChartFromStream if Chart consists series (with or without data). But I have no explanation for it.

Posted: Fri Jan 07, 2005 8:56 am
by narcis
Hi,

This problem is because after importing the series type is not recognised. Inlcuding TeeEditPro solves this problem as it runs RegisterTeeSeries(...).