Split the detail
Sometimes it is useful to split the detail into more bands. The aim could be to
display a specific detail band instead of another one when some conditions happen.
These conditions must be tested by using the band PrintWhen Expression.
It is possible to have an arbitrary number of detail bands creating new groups that
use a group expression that changes in value on each record. You can use as an
expression a primary key field of the record or a counter variable. In this way,
besides in the detail band, you will have for each record a group header and group
footer, usable in the same way you use the detail band.
On figure 19.6 the report design is visible for which the detail band is hidden to
leave space for the header bands of a couple of new groups, for which the used
group expression is the same: the record primary key.
Checking the “Start on a new page” option for the first group, we can force a page
break for each record.
Partager