Home Subreports

Subreport and group problem

edited December 2002 in Subreports
Hello,

I'm using D6 en RB7. I'm creating a report with some subreports, and in one
of them I use a group (properties : datafield, start new page, reprint group
headers on subsequent pages). The subreport consists of the following :

Subreport
Header
Groupheader
Detail
Footer

The report executes fine except in the case where there are just enough
records to fill one page. Then RB adds another page to the report with the
headerband, groupheader and footer, but with no detail. If there are more
records, the problem doesn't occur.
The strange thing is, that when I create a report with just the header,
groupheader, detail and footer, and no subreports, the problem doesn't
occur.

What am I doing wrong in the subreport?

TIA,

Bart Callewaert

Comments

  • edited December 2002
    Do you have any empty bands or dynamic height bands? There is whitespace in
    a band that the engine thinks it needs to print because you have it as part
    of the layout. Add different colored shapes to the bands to see which band
    is causing the problem. Set the shapes to reprint on overflow.


    Cheers,

    Jim Bennett
    Digital Metaphors

  • edited December 2002
    Jim,

    I've done the things you suggested, but I didn't find an answer (the shape
    in the detail band didn't show up in the extra page).

    So I did some comparing between the dfm file of the working report and the
    one that gave me troubles. And I found the solution : there is a groupfooter
    in the subreport which I don't use, but the printposition was <> 0. I
    changed this to 0 and the report executes fine now. I made the (bad)
    assumption that if the groupfooter's height is 0, and the visible property
    is false, that the band wouldn't be printed and that RB would never use it
    to do things with.

    Anyway, thanks for the tips,

    Greetings,

    Bart

This discussion has been closed.