Print report summary at end of page

mramra
edited September 2011 in FastReport 4.0
hi,
i am not able to get my report summary page to print at the end of the last page.
It prints immedately after my details band. which is does not fit in my pre printed form.

i am using delphi xe wth fastreport 4.11.14

any pointers will be appreciated.

thanks in advance.

regards
mra

Comments

  • gordkgordk St.Catherines On. Canada.
    edited 2:12PM
    in the obp event of the summary band write code to force a newpage.
    engine.newpage
  • mramra
    edited 2:12PM
    gordk wrote: »
    in the obp event of the summary band write code to force a newpage.
    engine.newpage
    ok i got the on bef print event i a applied the following code:

    Engine.NewPage;

    but the summary totals is printing on at a brand new page and not at the last page of the printing.

    any pointers.

    regars
    rashid.
  • edited 2:12PM
    mra wrote: »
    mra wrote: »
    in the obp event of the summary band write code to force a newpage.
    engine.newpage
    ok i got the on bef print event i a applied the following code:

    Engine.NewPage;

    but the summary totals is printing on at a brand new page and not at the last page of the printing.

    any pointers.

    regars
    rashid.

    mra, did you ever get a solution for this? I need to do the same thing for an Invoice. There is ample space on the last page, but the summary is printed directly after the last detail instead of at the botton of that page.
  • edited 2:12PM
    [/quote]

    mra, did you ever get a solution for this? I need to do the same thing for an Invoice. There is ample space on the last page, but the summary is printed directly after the last detail instead of at the botton of that page.
    [/quote]

    mra, if your'e interested I think i found the solution somewhere in the forum.

    Add this to your OBP event of the summary band

    Engine.CurY := Engine.CurY + Engine.FreeSpace - ReportSummary1.Height - 1;
  • gordkgordk St.Catherines On. Canada.
    edited 2:12PM
    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;
  • edited 2:12PM
    you can set it page place property to bottom

Leave a Comment

Rich Text Editor. To edit a paragraph's style, hit tab to get to the paragraph menu. From there you will be able to pick one style. Nothing defaults to paragraph. An inline formatting menu will show up when you select text. Hit tab to get into that menu. Some elements, such as rich link embeds, images, loading indicators, and error messages may get inserted into the editor. You may navigate to these using the arrow keys inside of the editor and delete them with the delete or backspace key.