How to get page Number OnAfterCalcHeight evnt

edited December 2014 in FastReport 4.0
procedure MasterData1OnAfterCalcHeight(Sender: TfrxComponent);
begin
Memo1.Text := <Page#>; // not correct
end;

how to get?

Comments

  • gordkgordk St.Catherines On. Canada.
    edited 7:15AM
    is report 2pass
  • gpigpi
    edited 7:15AM
    Try
    procedure MasterData1OnAfterCalcHeight(Sender: TfrxComponent);
    begin
    if MasterData1.Height < Engine.FreeSpace then Engine.NewPage;
    Memo1.Text := <Page#>;
    end;
    

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.