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 10:16AM
    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 10:16AM
    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

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.