Problem setting the position of Fotter Band

rphrph
edited 5:44AM in FastReport 4.0
Hi, im making a report where i have a MasterDataBand and a FotterBand. But the fotter band is positioned after the MasterDataband. I need that the fotter band prints at the bottom of the page.
How can i set the position of any band so that it will be positioned in any location that i need ? Even if i Have a MasteDataBand and a Child Band and i want to print the child band at the bottom of the page.

Comments

  • gordkgordk St.Catherines On. Canada.
    edited 5:44AM
    Here is a sample using the summary band.
    just sub your footer band name to suit.

    procedure ReportSummary1OnBeforePrint(Sender: TfrxComponent);
    begin
    if engine.freespace > reportsummary1.height then
    begin
    Engine.CurY := Engine.PageHeight -reportsummary1.height -pagefooter1.Height - 1;

    end;
    end;

    OR IF STRETCHING DO IT HERE

    procedure ReportSummary1OnAfterCalcHeight(Sender: TfrxComponent);

    begin
    Engine.CurY := Engine.PageHeight -reportsummary1.height -pagefooter1.Height - 1;
    end;

Leave a Comment