Detailband with Subreport / Pagebreak

Hi,

I have a report which contains a MasterData band. On this there is a subreport. sometimes the subreport is showing part on one page and the rest on the next page.

I would like to keep the MasterData and the subreport together, i.e. if the Masterdata and the subreport together are too long both would be printed on the next page.

Can this be done?

Many thanks
Gernot

Comments

  • gordkgordk St.Catherines On. Canada.
    edited 10:14AM
    This should work 1st make the report 2 pass in the first pass gather the line count of the subreport in an array whose index is related to the mdband, in the obp event of the mdband write code to check if you are in the finalpass and the array value is greater than a certain number then force a new page

    if engine.finalpass and myarray[index] > number 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.