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

Multiple Child subreports not behaving

edited April 2004 in Subreports
I have a report which uses several subreports within regions with contents
that must stay together. All works well except when there is clearly room
on the page to print the contents (or at least start the contents) of the
second subreport it will perform a new page and start at the top of the next
page instead.

I have:

header
--------------
begin region 1
title for region 2
subreport 1
end region 1
begin region 2
title for region 2
subreport 2
end region 2
-------------
footer

What I get is
pg 1
header
region 1 title
subreport 1 contents

footer

pg 2
header
region 2 title
subreport 2 contents
footer

what I want is

pg 1
header
region 1 title
subreport 1 contents
region 2 title
subreport 2 contents
footer

pg 2
header
subreport 2 contents continued
footer

The regions are set to KeepTogether and stretch
The subreports are set to stretch but not KeepTogether

I have tried to turning off KeepTogether for the regions and turning it on
for the subreports or turning both on or both off. In every case I cannot
get the desired result and some combinations leave region titles on one page
and place subreport data on another.

The problem only seems to ocurr when subreport 2 has more data than can fit
on a page by itself.

Got any ideas? This happens on RB5.56 and 7.02.

Brian

Comments

  • edited April 2004
    Hi Brian,

    By definition, if a subreport is set to KeepTogether, it will try to fit on
    one page.... if there is not enough room, it will move to the next page and
    try to fit on that one. I feel we could get to the bottom of this issue
    much quicker if you send me a small example of what is happening and what
    you would like to see happen. Please send the example to
    support@digital-metaphors.com and I'll try to get it working the way you
    need.

    --
    Best Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com
  • edited April 2004
    Nico, thanks for the offer. Unfortunately the situation is quite complex
    and I have not run into it in any simple case that I could cobble up. I
    have been using RB for a long time and it works beautifully 98% of the time.
    This is one of those 2% cases.

    I realize that setting KeepTogether will force a page if RB thinks it can't
    fit all of it on the same page. But when I turn them off, I still get
    similar behavior. What I get then is:

    header
    region 1 title
    subreport 1 data
    region 2 title


    new page
    header
    subreport 2 data

    If I leave KeepTogether off it should perform as I desire but it doesn't.
    The contents of the region are split across two pages: the text title on the
    page where I want it and the subreport on the next page where it shouldn't
    start.

    Brian

  • edited April 2004
    Another point I could mention is that these Child subreports are inside of a
    Section subreport - the Section subreport also forcing a new page on open.
    Is the Section behavior somehow overriding the Child behavior?

    Brian
  • edited April 2004
    I reworked the whole report and resolved some of my issues.

    Thanks for your time Nico.

    Can anyone confirm with me that KeepTogether did not work correctly in RB
    5.56? It works consistently correct in 7.02 but not in 5.56.

    Are there any other fixes or updates between the two versions that I should
    know about?
This discussion has been closed.