ReportSummary at the bottom.

Hello,

I'm a beginner of Fast Report.

I added ReportSummary because PageFooter is visible on every each (instead of last page only)
ReportSummary is not at bottom of page .

I tried this function
procedure ReportSummary1OnBeforePrint(Sender: TfrxComponent);
begin
 Engine.CurY := Engine.CurY + Engine.FreeSpace - ReportSummary1.Height - 1;
end;

But nothing happens.

Can you tell me why ?

Thank you

Comments

  • gordkgordk St.Catherines On. Canada.
    edited 2:44AM
    try this
    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:44AM
    I tried both.. but no success >
    procedure ReportSummary1OnAfterCalcHeight(Sender: TfrxComponent);
    begin
    Engine.CurY := Engine.PageHeight -reportsummary1.height -pagefooter1.Height - 1;
    end;
    
    begin
    
      
    end.
    
    procedure ReportSummary1OnBeforePrint(Sender: TfrxComponent);   
    begin
    if engine.freespace > reportsummary1.height then
    begin
    Engine.CurY := Engine.PageHeight -reportsummary1.height -pagefooter1.Height - 1;
    
    end;
    end;
    
  • edited 2:44AM
    I know why...

    C++ Builder doesn't execute script..

    I just write :
    Report->Script->Execute();
    

    and I had an error
    unregistered version of fastscript
    

    How can I resolve it ?
    It's strange
  • gordkgordk St.Catherines On. Canada.
    edited 2:44AM
    what version of fr5 are you using demo or xe version?
  • edited November 2014
    I found !

    I was using XE 's version. Then I buyed a standard version to support script. Then I installed it.
    After installing I was able to introduce scripts . ( but no results in c++)

    I put a simple script as "hello world" to check . Result : No reaction in C++ ! So I understood why my script doesn't work.. Because, I must uninstall before all XE 's Fastreport then I 've to install the standard version.

    Now all is working ! thank you for all.

    Just an information for anyone who wants switch from XE 's FastReport to standard Version : Uninstall before all fastreport.

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.