Problem with data rendering in nested subreport

Stimulsoft Ultimate discussion
Post Reply
User avatar
tpontow
Posts: 206
Joined: Thu Sep 06, 2012 8:46 am
Location: Bonn, Germany

Problem with data rendering in nested subreport

Post 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
Attachments
DataBandRenderingProblem.png
DataBandRenderingProblem.png (85.5 KiB) Viewed 1620 times
Strukturtest.zip
(34.15 KiB) Downloaded 221 times
Thorsten Pontow

It is easier to write an incorrect program than to understand a correct one. (Alan J. Perlis, Epigrams in programming No. 7)
User avatar
tpontow
Posts: 206
Joined: Thu Sep 06, 2012 8:46 am
Location: Bonn, Germany

Re: Problem with data rendering in nested subreport

Post 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
Thorsten Pontow

It is easier to write an incorrect program than to understand a correct one. (Alan J. Perlis, Epigrams in programming No. 7)
HighAley
Posts: 8430
Joined: Wed Jun 08, 2011 7:40 am
Location: Stimulsoft Office

Re: Problem with data rendering in nested subreport

Post by HighAley »

Hello.

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

Thank you.
Post Reply