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

TppDetailBand.Height?

edited November 2003 in General
Hi,

If TppDetailBand.PrintHeight is set to phDynamic and the band contains a
component of variable size (e.g. a TppMemo), is it possible to tell how tall
the band will be before printing it? If I look at the Height property, that
gives me the height set at design time, not the height after the memo has
been loaded with several lines of text.

The reason I'm asking is that I've got a subreport with a single detail
band, which needs to print on a new page if there isn't enough space on the
existing page.

I'm using Delphi 3 and RB 4.23.

TIA

John

Comments

  • edited November 2003

    You will need to check out

    Open RBuilder\Source\ppCtrls.pas and search for the
    TppCustomMemo.CalcSpaceUsed method.

    You will need to use similar logic to calculate the height required for the
    memo.

    --
    Nard Moseley
    Digital Metaphors
    http://www.digital-metaphors.com

    Best regards,

    Nard Moseley
    Digital Metaphors
    www.digital-metaphors.com
  • edited November 2003

This discussion has been closed.