Home General
New Blog Posts: Merging Reports - Part 1 and Part 2

Group always forces new page

edited February 2006 in General
Hi,

We have a report with 2 groups.
The 1st group is set to force a new page when break
The 2nd group doesn?t force a new page and has a subreport in its group
footer

Report Builder forces a new page every time the 2nd group breaks (after
printing the group footer) and every time the 1st group breaks (as
expected).
We don?t want the 2nd group to force a new page, only the 1st group should
do this. We have checked the TppGroup settings and they are correct.
We have also removed the 1st group and now the report prints correctly (does
not force a new page when the 2nd group breaks).

Can you help us out solving this problem ?

Report Builder 9.03
Borland Delphi 2005

Best regards,
Nuno Fonseca

Comments

  • edited February 2006
    Hi Nuno,

    If you remove the subreport from the group footer, does the behavior
    continue? What type of subreport are you using? My first guess would be
    that the group footer does not have enough room to print the entire
    subreport and forces a page break every time it tries to generate. If this
    is not the case, please send a small example of this behavior in .zip format
    to support@digital-metaphors.com and I'll take a look at it for you.

    --
    Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com

    Best Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com
  • edited February 2006
    Hi Nico,

    While I was doing a test report to submit to you, I found out that the group
    creation order has influence in how the group breaks are done. We have
    inverted the groups order and now its looks like it is going to work.

    I only need to know one more thing:
    Having 2 groups (0 and 1), when group 0 breaks does it force group 1 to
    break too ? The report looks like this:
    -------------------------------------------------------
    Group 0 forces a new page when break
    Group 1 does not force a new page
    -------------------------------------------------------
    Some text here
    ^ Title ^
    Some Labels here
    ^ Header ^
    ^ GroupHeader [0] ^
    ^ GroupHeader [1] ^
    Some DB Fields Here
    ^ Detail ^
    Some Variables Here
    ^ GroupFooter [1] ^
    ^ GroupFooter [0] ^
    Some Text Here
    ^ Summary ^

    The result is that when group 0 breaks the GroupFooter [1] also prints. Is
    this normal ?

    I will continue to build the test report to send you anyway.

    Regards,
    Nuno Fonseca

  • edited February 2006
    Hi Nuno,

    When creating two groups as you have done, they are essentially nested
    groups. So if the outside group (Group 0) breaks, the inside group will
    break along with it.

    --
    Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com

    Best Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com
  • edited February 2006
    Hi Nico,

    Since these groups behave like that, is there any way we can have two groups
    that are not nested, so that they group1 doesn't break with group0.

    Sorry for all this questions, but I am running out of ideas.

    Regards,

    Nuno Fonseca

  • edited February 2006
    Hi Nuno,

    One option you might explore is completely separating each group using
    subreports. This will require separate datasets but may be able to give you
    the effect you are after.

    --
    Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com

    Best Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com
This discussion has been closed.