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

height of ppDetailBand

edited November 2005 in General
Is it possible to change the height of the ppDetailBand?
Normally I have the following:

row1 col2 col3 col4
row2 col2 col3 col4
row3 col2 col3 col4
row4 col2 col3 col4

But now I want to add an extra row but only if there is some text in it.
Like this:

row1 col2 col3 col4
row2 col2 col3 col4
extra text
row3 col2 col3 col4
row4 col2 col3 col4

Is this possible? I don't want

row1 col2 col3 col4

row2 col2 col3 col4
extra text
row3 col2 col3 col4

row4 col2 col3 col4

Thanks in advance.

Comments

  • edited November 2005
    Hi Peter,

    If you set your Detail Band's PrintHeight to phDynamic, you can get the
    following effect simply by toggling the visibility of a text component at
    the bottom of the band. For instance, place your extra text inside your
    detail band (at the bottom) and set its Visibility to False. Then, inside
    the DetailBand.BeforePrint event toggle the visibility based on a certain
    condition. Example...

    procedure TForm1.ppDetailBand1BeforePrint(Sender: TObject);
    begin
    if ppReport1.DataPipeline['CustNo'] = 1513 then
    ppDBText2.Visible := True
    else
    ppDBText2.Visible := False;
    end;

    --
    Regards,

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

    Best Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com
This discussion has been closed.