Endless loop
Posted: Mon May 31, 2010 3:14 am
We have a problem with a report (Stimulsoft Reports .NET) and we think it is a bug. It is easy to reproduce also in the newest version.
Create three datasources
Source1 (Header)
Source2 (Position section 1 with Relation1 to source1)
Source3 (Position section 2 with Relation2 to source1)
Create a report structure like this:
Group Header with a group condition, so that every record from source1 defines a group
and with property "StartNewPage=true"
Databand1 (Source1)
Group Footer
Databand2 (Source2)
Databand3 (Source3)
The layout should look like this:
Address from a header record (databand1)
Positions from source2
Positions from source3
Text of the group footer
etc. with the next address on a new page.
Problem: If a header record has a number of related positions of source2 (or source3) which determines a page break, the report runs in an endless loop. This is caused by the group header band, not by the StartNewPage-property in this band.
If one have only one position section there is an obvious workaround, because one can use only one databand with a group condition based on a field of the relation.
Create three datasources
Source1 (Header)
Source2 (Position section 1 with Relation1 to source1)
Source3 (Position section 2 with Relation2 to source1)
Create a report structure like this:
Group Header with a group condition, so that every record from source1 defines a group
and with property "StartNewPage=true"
Databand1 (Source1)
Group Footer
Databand2 (Source2)
Databand3 (Source3)
The layout should look like this:
Address from a header record (databand1)
Positions from source2
Positions from source3
Text of the group footer
etc. with the next address on a new page.
Problem: If a header record has a number of related positions of source2 (or source3) which determines a page break, the report runs in an endless loop. This is caused by the group header band, not by the StartNewPage-property in this band.
If one have only one position section there is an obvious workaround, because one can use only one databand with a group condition based on a field of the relation.