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

Detect Subreport out of room in a static band

edited November 2004 in RAP
D6 RB7.04 EUR with RAP and DADE

I have a two column report that has a fixed detail band. The detail
band has a subreport sized to the band. The subreport itself has
subreports that scan dataviews and are of variable height.

Usually everything fits but if it doesn't I want to put out an
indicator that it didn't.

How can I detect the truncation?

Thanks,
Rick Matthews
Dartek Systems Inc.

Comments

  • edited November 2004
    Does anybody have any suggestions?

    Thanks,

  • edited November 2004
    Hi Rick,

    Sorry about the delay in this response, my newsreader did not pick up your
    first post for some reason.

    You should be able to use the DetailBand.OutOfSpace property to detect if
    there is going to be an overflow. If you want to place a message when this
    happens, you could code something like the following inside the
    DetailBand.AfterGenerate

    if ppDetailBand1.OutOfSpace then
    ppLabel3.Visible := True
    else
    ppLabel3.Visible := False;

    --
    Regards,

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

    Best Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com
  • edited November 2004
    No problem, I should have remembered that method. It worked a treat
    thanks very much.

    Cheers,

This discussion has been closed.