detail on new page

good morning,

I am new in using fastreport and I have a question:

I made a report like this:

- master detail
- detail 1
- detail 2
- master footer

It is running good, but if there are many lines for detail1, the detail2 is splitted in two parts.

Is it possible to avoid this and to print the detail2 on the new page in this case ?

Because the detail2 is always 4 lines. So it's not beautiful to have 2 lines on page one and 2 lines on page two .

for example sometimes I have this:

first page
master detail
detail1
detail1
---
detail1
detail1
detail2
detail2


second page
detail2
detail2

master footer

If there is not enough space on page one , I want the detail2 on page two. ?

regards







Comments

  • gordkgordk St.Catherines On. Canada.
    edited 3:41PM
    add a headerband for the detail2, it may be 0 height ,it will be used to write code in it's obp event to check the engine's freespace.

    if engine.freespace < somevalue then engine.newpage.

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.