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

Streaming in old templates to new components

edited February 2003 in General
Using ReportBuilder Enterprise v6.03 with TeeChart v5.02.
We upgraded our version of TeeChart recently and now some properties that
existed no longer exist. This presents a problem for streaming some of our
clients' existing reports, i.e. getting "property does not exist" errors.
The only work around to this i found was just before streaming the report to
set Delphi's global IsMultiThreaded flag to False - then, instead of
rejecting the report, pops up the "Ignore, Cancel, Ignore All" dialog.
Ideally i need a way to hook my own event to the TReader's OnError event so
that I can do what i want with the messages (like automatically ignore all
and pop up a warning at the end that indicates that there were problems). Is
there any way for me to do this?

Gilbert

Comments

  • edited February 2003
    Can you reproduce this problem using Teecharts on a TForm outside of RB? Are
    these Teechart properties that are removed? What are the properties?
    ReportBuilder should eat any properties that ReportBuilder proper has
    deprecated. If Teechart has not eaten their property changes in 5.02, then
    that should be something that they do in their classes. We can take a look
    to see if it is possible to eat their property changes in our TCustomChart
    descendent.


    Cheers,

    Jim Bennett
    Digital Metaphors


  • edited February 2003
    Have not tried streaming a TeeChart component in directly, the problem i am
    getting is with ppDPTeeChartControl1.BackWall.Color, so i assumed it was the
    ReportBuilder implementation of TeeChart that is not eating this property.
    My main concern is that identifying the property is not enough and that
    there may be more that have not been found yet. Should i take this problem
    to the TeeChart team?

    ciao,
    Gilbert




  • edited February 2003
    I looked at our source and did not see it declared in the latest version
    7.01, nor in 6.03. Try adding

    property Backwall;

    to the published section of TppDPTeeChartControl class in your copy of
    ppChrtDP.pas. Then rebuild the project and try to load the template at
    runtime. If you run into others, try adding them to this published section
    of this class.


    Cheers,

    Jim Bennett
    Digital Metaphors


This discussion has been closed.