Max. n rows per page

Hello,

I want my Report to show max. n rows (of the MasterData) per page. Is there a smart way to do that?

Thanks!

Comments

  • Use for 10 rows

    procedure MasterData1OnBeforePrint(Sender: TfrxComponent);
    begin
     if (<Line> mod 10 = 1) and (<Line> > 1) then
      Engine.NewPage;        
    end;
    


  • scjscj
    edited 9:03AM

    Thanks, that would result in exactly 10 rows per page. What I am looking for is really max. 10 rows per page (I have rows with dynamic height).

    If on the first page there just fit 4 rows, I still want max. 10 rows on the second page and so on.

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.