Data location on report page.

Hey Everyone.

I'm trying to figure out what's wrong with my report. For some reason, it keeps compiling incorrectly.

I have a simple report structure with two datasets: parent and child. Ideally, I want to generate a report that displays one parent band and its related child bands on a single page, continuing to form rows on subsequent pages until all results are displayed.

Please see the attached pictures.


First Picture is a report page.

Second is a subreport page.

Third picture is a preview results.

Please reach me if you need additional information.

Comments

  • Hello!

    A subreport is a separate page with its own data stream: the remainder of its rows is carried over to a new page, which causes the parent and child to diverge. A subreport is not required for a master-detail layout.

    Insert the detailed DataBand directly into the master DataBand and link the data sources using a relation; if there are several relationships between the data sources, specify the required one in DataBand.Relation.

    If a subreport is required, print its objects on the parent band:

    var sub = (SubreportObject)report.FindObject(‘Subreport1’);
    sub.PrintOnParent = true;
    

    When PrintOnParent = true, the subreport’s page dimensions are not included in the pagination — the flow is determined by the parent page.

This discussion has been closed.