Display SUM of previous page on the beginning of next page

IvicaSDIvicaSD Beograd, Srbija
edited 10:01PM in FastReport 4.0

On the bottom of each page (in PageFooter on every but last page, and in GroupFooter for the last page) I show SUM with aggregate function

[SUM(<KEPU."ZADUZENJE">,MasterData1,2)]


I would like to print the same data on the beggining of the next page (in PageHeader), but can not use the same formula (it remains empty on print preview).


Furthermore, this SUM should not be seen on the beginning of the first page! How can I hide it?
I can remove it from the PageHeader, but where to put it? (PageFooter has a nice option - PrintOnFirst/LastPage, in properties)

Please, help me.

Comments

  • gordkgordk St.Catherines On. Canada.
    edited September 2011
    in the footer store the value in a variable.
    in the memo of the header use the variable.
    in the obp event of the memo in the header, or the page header write code to set the memo visible to false.
    memo1.visible := <page#> > 1;
    also write code to set the variable to 0 at the start of the report
  • IvicaSDIvicaSD Beograd, Srbija
    edited 10:01PM
    gordk wrote: »
    in the footer store the value in a variable.
    in the memo of the header use the variable.
    in the obp event of the memo in the header, or the page header write code to set the memo visible to false.
    memo1.visible := <page#> > 1;
    also write code to set the variable to 0 at the start of the report


    Thanks a lot! [img]style_emoticons/<#EMO_DIR#>/smile.gif" style="vertical-align:middle" emoid=":)" border="0" alt="smile.gif" /> Couldn't try today, will do tomorrow...[/img]
  • IvicaSDIvicaSD Beograd, Srbija
    edited 10:01PM
    gordk wrote: »
    in the footer store the value in a variable.
    in the memo of the header use the variable.
    in the obp event of the memo in the header, or the page header write code to set the memo visible to false.
    memo1.visible := <page#> > 1;
    also write code to set the variable to 0 at the start of the report

    Just to inform you that following your instructions to the letter led me to a success! [img]style_emoticons/<#EMO_DIR#>/smile.gif" style="vertical-align:middle" emoid=":)" border="0" alt="smile.gif" /> Thanks again.[/img]

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.