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

How to start a new page if there isn't enough space in the detail band?

edited June 2003 in General
Hi,

i have a report where in the detail band i print the contents of a table and for each printed record i run a query. The results of
this query are displayed in a subreport also located in the detail band. The problem is that i don't know what to do so that the
detail band would start printing on the next page if there isn't enough space to print on the current. I'd like at least one record
of the subreport to be printed before skipping to the next page - which is not the case now, because sometimes only the labels above
the data fields (not the fields of the subreport) are printed on one page and the data fields plus the subreport in the next.

Any suggestions?

Thanks

Comments

  • edited June 2003
    Problem resolved,

    i put a TppRegion component over the whole detail band and set its KeepTogether property to true.

    I tried this approach already before posting the question, but it seems that not all of the components were inside the region (i
    print almost to the margins of the page ), so it didn't work.
  • edited June 2003
    If you place the region in the detail band after the other
    components, you will typically find that the other components
    are not "in" the region.

    Try cutting each component, click on on the region and paste.
    Use the report tree to verify.

    Jon

This discussion has been closed.