footer on the last page

edited September 2013 in FastReport 4.0
Good day, I would print a pagefoorter only on last page. I have the options to print or not in the first and last, but he keeps impressing during, or in the middle pages. How do I?

Comments

  • gordkgordk St.Catherines On. Canada.
    edited 11:16PM
    make report 2 pass report
    in the obp event of the footer write code to control visibility
    if engine.finalpass then
    begin
    visible := (<page#> = <totalpages#>);

    Note a better option is to use the page footer band for displaying only those items you want on every page,
    ie pagenumber etc
    and use either a different footer or a summary band.
  • good morning, I tried to do this but could not. He returns the value when the condition is true, allows it to be visible the memo (or own footer). If you use those conditions to print the first and last page it cancels the printing of the first and last but not cancel printing the 'middle'. In the case between 3 pages with both conditions would be false printed only on the second page.
  • gordkgordk St.Catherines On. Canada.
    edited 11:16PM
    leave the visible property of the footerband set to true.
    report engineoptions doublepass = true
    in the pagefooter obp event write code
    yourfooterbandname.visible := <Page#> = <TotalPages#>;
    works fine for me.
  • gordk wrote: »
    leave the visible property of the footerband set to true.
    report engineoptions doublepass = true
    in the pagefooter obp event write code
    yourfooterbandname.visible := <Page#> = <TotalPages#>;
    works fine for me.

    thank you friend, I'm sorry, I do not think he understood right the first answer. Thank you.

Leave a Comment