Home General
New Blog Posts: Merging Reports - Part 1 and Part 2

RB7 for D6 and TppCharts

edited September 2002 in General
Hi,

in RB 6.03 I have build a report with a chart containing two simple 2D
BarSeries.

after installing RB7 for D6 I get the message:

Class TBarSeries not found.

and the report is not printed.

Whats to do?


Knut Lambert

Comments

  • edited September 2002
    Make sure you have Series in your uses clause.


    Cheers,

    Jim Bennett
    Digital Metaphors

  • edited September 2002
    Thanks for your response Jim,

    Unit series is in the uses list but it didnt work. I have done some tests:

    D6.02, TeeChart Pro 5.02, RB 7

    Building a new Application, placing a TppReport on the Main Form, removing
    header and footer,
    placing a TppChart, adding a BarSeries (or PieSeries), adding Series to uses
    list.

    When the form is created I get the error: Class TBarSeries (or TPieSeries)
    not found.

    When changing dm0092 in your demo Application to a Barseries I get the same
    result. The original
    series in your demo works fine.

    Hope I can get more help.

    Thanks a lot


  • edited September 2002
    Thanks for pointing this out. If you add a registration call in your form
    unit so that you can get around the error until we can research it further.

    uses
    Series;

    initialization
    RegisterClass(TBarSeries);




    Cheers,

    Jim Bennett
    Digital Metaphors

  • edited September 2002
    Hi there,

    i have the same problem... with RegisterClass(..) my program works fine
    until i exit it... then i get an EAccessViolation-Error... i'am using the
    demoversion...

    Thanks
    Stephan Methner
    m.able GmbH, Munich


  • edited September 2002
    We've researched this some more and found out what was happening. We'll have
    this fixed for the next maintenance release for Teechart support. First,
    make sure Series is in the uses clause. This will solve the problem when
    using Teechart 4.04. If you have Teechart 5.02, you have to make another
    call. Make this call in the initialization section of your form unit:
    Series.RegisterTeeStandardSeries. If you are using a series that isn't one
    of the standard ones, then you'll have to add to the uses clause instead and
    not make any further calls as you do for the standard series. For example,
    if you add a contour series, you'll have to add TeeSurfa to your uses
    clause.


    Cheers,

    Jim Bennett
    Digital Metaphors

This discussion has been closed.