MasterDataset Record in Page Footer

edited 9:21AM in FastReport 4.0
I noticed in June of last year a problem with the MasterDataset jumping ahead one record in the Page Footer. Reading through the thread, I saw the issue was unresolved. I am having the same problem. Has anything been done to rectify the problem?

Essentially, in a multi-page report, as the MasterDataset is incremented one record and a new page is called for, information from the new record is prematurely printed on the footer of the previous page. >

Comments

  • gpigpi
    edited 9:21AM
    This is feature of FR's engine. Store masterdata values in report variables in band's OnAfterPrintEvent and show this variables in PageFooter
  • edited 9:21AM
    gpi wrote: »
    This is feature of FR's engine. Store masterdata values in report variables in band's OnAfterPrintEvent and show this variables in PageFooter

    Do you have any example code?
  • gpigpi
    edited 9:21AM
    procedure MasterData1OnAfterPrint(Sender: TfrxComponent);
    begin
         Set('CustNo', <Customers."Cust No">);                  
    end;
    
  • edited 9:21AM
    Thanks - Read up on scripting over the weekend. I think it is starting to make sense to me.

Leave a Comment