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

detail band "keeptogether"

edited November 2014 in General
Hi,

I have a report where a detailband has a horizontal line below the
columns data. The details band is set to phDynamic. Sometime, at the
end of a page, the horz line of the detailband does not fit on the page
and is thrown on the next page. How do I stop that? I mean, if the line
does not fit I don't want the last detail on that page, period. I tried
using regions, but maybe I'm not doin it correct. I amsaying this
happens "sometime" because the report may be formatted to fit on A2 or
A3 or A4 paper size, depending on how many columns visible there are.
For this specific report it doesn't fit on A3, but that's not the
issue. The issue is how do I keeptogether the elements of the
detailband?

Thx,
Lucian

Comments

  • edited December 2014
    Hi Lucian,

    Which version of ReportBuilder and Delphi are you using?

    Regions or subreports provide excellent keeptogether containers for
    report components in a band. If you place a region inside your detail
    band and set its ParentHeight and ParentWidth to True it will take up
    the entire band and keeptogether if the property is set. Be sure all
    components are actually inside the region using the report tree.

    Best Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com
  • edited December 2014
    Hi and sorry for getting back so late. I was switched to something else
    and actually forgot about this issue. Now I'm back and back is my issue
    ... thanks a lot, I will try the tricks with regions/subreports one of
    these days.

    Merry Christmas,
    Lucian
This discussion has been closed.