FreeSpace doesn't work

edited 4:13PM in FastReport 3.0
;) Hello Alexander,

This code in an obp event of a groupfooter doesn't work in alpha9.

if Engine.FreeSpace < GroupFooter1.Height then Engine.NewPage;
Engine.CurY := Engine.PageHeight - GroupFooter1.Height;

There is plenty of room to display the groupfooter but I get 2 pages instead of 1. Can you have a look? It's very important for me that it works.

Thanks
Pierre Demers

Comments

  • edited 4:13PM
    If you have a page footer, the last line should be:
    Engine.CurY := Engine.PageHeight - GroupFooter1.Height - PageFooter1.Height - 1;

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.