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

Form-Inheritance and TppRegion doesn't work

edited March 2007 in General
Hi,

in the newsgroups I've found advices for not using form-inheritance with
Reportbuilder:
- using .rtm
- using the pipeline on the same form.

Now I created my first inherited RB-Form. And get the first error.
I've reduced it to the following simple steps:
1. create a new project.
2. drop a TppReport on the Unit1-Form
3. drop a TppLabel into the detailband and set the Caption to 'Parent'
4. create a child from Unit1 --> Unit2
6. set the Caption of ppLabel1 to 'Cild' so you see where you are
7. add a TppRegion to the detailband of Unit2
8. move ppLabel1 into the ppRegion1
9. Press Delphi's save-button

you get an error
"Komponente mit der Bezeichnung ppLabel1 existiert bereits."
what could be in english:
"a component with the name ppLabel1 already exists"

10. remove ppLabel1 into the free room of detail-band and you can save
11. move ppLabel1 to the header-band
12. Press Delphi's save-button

and you see the ppLabel1 on it's old place in detail-band with caption
'Parent' ????

I wanted to create a set of testing forms for some different features,
based on the same data.
And my idea was, to make a basic report purely based on the data-columns
and add test the additional features in different inherited forms.
Now I've to copy basic form and loose the great benefit of class
inheritance.
I'm wondering about that, because it was very easy to do with the despised
Quickreport.

Should I use Report-Template-technique instead.

--
Best regards
Dietmar Brueckmann

Comments

  • edited March 2007
    Sorry, but I forgot

    Win XP, D6, RB prof 9.03

    --
    Best regards
    Dietmar Brueckmann
  • edited March 2007
    Hi Dietmar,

    Sorry about the delay, I somehow lost track of your post.

    As a test try downloading a trial copy of RB 10.05 and see if the issue
    still exists. We made some changes to the for inheritance logic for RB 10.

    --
    Regards,

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

    Best Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com
  • edited March 2007
    Am Tue, 6 Mar 2007 10:56:10 -0700 schrieb Nico Cizik (Digital Metaphors):


    Because our developerline will go to Java, I'm not able to upgrade.
    That's why I won't confuse unnecessarily my machine with two versions of
    RB. I'll give templates a try instead.

    --
    Best regards
    Dietmar Brueckmann
This discussion has been closed.