Page 1 of 1

Problem with data rendering in nested subreport

Posted: Mon Jun 17, 2013 8:34 am
by tpontow
Hello Stimulsoft,

i have a problem with some databand rendering. The databand is placed in a nested subreport. I attached my sample project including the *.mrt file. Just run the project and the report will opening.

The problem is in DataBand4 placed in subReport_2. It is bound to a BusinessObject called Person2. This one has the same properties as BusinessObject Person (Geburtsdatum, Name, Vorname). At runtime BusinessObjects Person and Person2 are bound to different collections containing objects of the same data type (see code of Form1 in attached project ).

subReport_1.DataBand1 for BusinessObject Person is rendered correctly with all rows of the first collection. But when DataBand4 is rendered with a different collection for BusinessObject Person2 the same data is shown for every row. And the data is from the last row of BusinessObject Person. The number of rows is correct but not the data.

Can you tell me what i made wrong?

Thanks and kind regards
Thorsten Pontow

Re: Problem with data rendering in nested subreport

Posted: Mon Jun 17, 2013 10:05 am
by tpontow
Hello,

meanwhile i found the error by myself. I used the wrong business object in the expression of the text components of DataBand4. Sorry!

Everything works fine now!

Kind regards
Thorsten Pontow

Re: Problem with data rendering in nested subreport

Posted: Tue Jun 18, 2013 11:32 am
by HighAley
Hello.

It's good. Let us know if you will have any questions else.

Thank you.