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

Missing reference to TeeChartControl and inheritance bug

edited September 2006 in General
----------------------------------------------------------------------------
Settings:

Delphi 7, ReportBuilder 10.04, TeeChart5.03
----------------------------------------------------------------------------

I?m facing two problems after migrating from Delphi4-ReportBuilder5
To Delphi7-ReportBuilder10.04

The first strange behaviour appears when I drop a TeeChart component on my
ppReport.

If i open the ParentForm.dfm file, i can see that ppReport1, ppTeeChart1 and
ppTeeChartControl1 has been added to the form. Everything seems normal.
[ParentForm.dfm
object ppReport1: TppReport
object ppTeeChart1: TppTeeChart
object ppTeeChartControl1: TppTeeChartControl
end
end
end
]

But now, if I take a look at the ParentForm.pas file i surprisingly see
that there is no reference to the ppTeeChartControl1 object.
[ParentForm.pas
ppReport1: TppReport;
ppTeeChart1: TppTeeChart;
]

The question is:? Why is there no reference to ppTeeChartControl1 object
in the ParentForm.pas whereas it exists in the dfm" ?


This first problem triggers a second one when I try to inherit a ChildForm
from the above ParentForm.

If a try to do this, I can see in the ChildForm.dfm that both ppTeeChart1
and ppTeeChartControl1 exists (see below), but when I try to save this
ChildForm after a color modification in the ppTeeChartControl1 , Delphi
Claims that ppTeeChartControl1 was not found in the ancestor class.

inherited ppReport1: TppReport
inherited ppTeeChart1: TppTeeChart
inherited ppTeeChartControl1: TppTeeChartControl
Color = 16744703
end
end
end


Note that these two cases worked fines with ReportBuilder5 !


Any Help would be very appreciated,
B.



--- posted by geoForum on http://delphi.newswhat.com

Comments

  • edited September 2006
    Hi Bruno,

    This was a change we made a while back to better manage the TChart object
    from the TppTeeChart. In order to change the color of the chart, you will
    need to access the TppTeeChart.Chart property at runtime.

    --
    Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com

    Best Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com
  • edited September 2006
    Hi Nico,

    Thanks for your reply.

    I understand how to access the chart properties in the parent form.
    But i still have a problem with the childforms (derived forms). My
    application is based on form inheritance, and delphi doesn't want to save
    these childforms even if i don't change anything to the chart properties.


    ----------------------------------------------------------------------------
    ----------------------------------------------------------------------------



    --- posted by geoForum on http://delphi.newswhat.com
  • edited September 2006
    Hi Nico,

    Do you have any idea/solution about my problem ?




    --- posted by geoForum on http://delphi.newswhat.com
  • edited September 2006
    Hi Bruno,

    I'm very sorry for the delay, my newsreader did not pick up you last post.
    If possible, please send a minimal example of what you are trying to do
    (including the form inheritance) in .zip format to
    support@digital-metaphors.com and we will try to find a workaround/option
    for you.

    --
    Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com

    Best Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com
This discussion has been closed.