Detail Data: limit the number of records

edited February 2021 in FastReport VCL

hi,

I need to generate a two-sided report. In Detail Data, In the first page I need to limit the number of records to 15, and in the second page I need to limit the number of records to 8.

- Page 1 : 15 records.

- page 2 : 08 records.

How to do it please?

thanks

Comments

  • Try to use

    if (<Line> = 16) or (<Line> = 24) then Engine.NewPage

    in the band's OnBeforePrint event in the script

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.