Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p><strong>EDIT</strong> since the previous* answer does not work with newer versions</p> <p>Set rowcount to 9 for your masterdata band of the subreport.<br> In your mainreport, copy the masterdata band containing the subreport and insert it twice.<br> Put a headerband between the masterbands with property StartNewPage set to true.<br> Add OnBeforePrint events to the second and the third subreport to change the filter for the dataset.</p> <pre><code>procedure Subreport2OnBeforePrint(Sender: TfrxComponent); begin TfrxDBDataSet(Report.GetDataset('frxDBDataset1')).Dataset.Filter := 'ID&gt;9'; TfrxDBDataSet(Report.GetDataset('frxDBDataset1')).Dataset.Filtered := true; end; procedure Subreport3OnBeforePrint(Sender: TfrxComponent); begin TfrxDBDataSet(Report.GetDataset('frxDBDataset1')).Dataset.Filter := 'ID&gt;18'; TfrxDBDataSet(Report.GetDataset('frxDBDataset1')).Dataset.Filtered := true; end; </code></pre> <p><img src="https://i.stack.imgur.com/PKd1S.png" alt="enter image description here"> </p> <p><strong>(*) for older report versions</strong>, you can use an other approach, which stopped working between the versions 4.10.01 and 4.12.14.</p> <p>Add an <em>OnAfterPrint</em> event to your memo on the subreport. Set the property <em>StartNewPage</em> to true after printing 9 "lines", Rowcount of the Masterband has to set to 1.</p> <pre><code>procedure YourMemoFromTheSubReportToRepeat9TimesPerPageOnAfterPrint(Sender: TfrxComponent); begin MasterDataBandFromSubReport.StartNewPage := &lt;Line#&gt; mod 9 = 0 end; </code></pre> <p><img src="https://i.stack.imgur.com/ZxK9Q.png" alt="enter image description here"></p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload