Home Subreports

Subreports - simple page overflow

edited February 2006 in Subreports
Hi;

I cannot get a subreports detail lines to simply overflow on to the next
page. I have setup a group for this child subreport; mage sure that
there are no KeepTogether := true; requested the group header to reprint
on the next page.

Subreport.Group.Header
detail line 0
..
detail line n
new page
Subreport.Group.Header
detail line n + 1
detail line n + 2 is what I'm looking for.

Instead I consistently get:

Subreport.Group.Header
detail line 0
..
detail line n
new page
Subreport.Group.Header
detail line 0
..
detail line n
detail line n + 1
detail line n + 2 , namely a repeat of those detail lines printed on
the first page.

I using ppJITPipelines accessing TStringLists and have been for years
within subreports so I suspect that I'm missing something.
One interesting event I noticed is that the index control used in
handling records is reset to 0 (zero) when a new page is detected by the
print engine.

I'm using Delphi 7 and RB 7.03 or RB 10.0 (trial)

Oh, by the by the popup menu on a subreport design screen for Groups...
doesn't work with RB 10.0. Top main menu Report | Groups does.

Nigel Scott
MVS

Comments

  • edited February 2006

    ----------------------------------------------------
    Tech Tip: Use Master/Detail JITPipelines
    ----------------------------------------------------


    To use Master/Detail relationship with the JITPipeline:


    1. Check out the demo dm0139 in the main demo reports app
    for an example.

    2. Make sure you have the Detail JITPipeline.MasterFieldLinks
    defined to specify the relationship. In dm0139 the detailed it
    linked to the master using the CustNo field from each pipeline.

    3. Once you have things setup like the above, then you will need
    to connect the Report.DataPipeline property to the master JITPipeline
    and the SubReport.DataPipeline property to the detail JITPipeline.

    4. In the FormCreate event set each JITPipeline.RecordCount
    property to the total number of records for each.


    You should not need to reset anything.

    6. ReportBuilder expects the data in the detail dataset
    to be in sorted order of the field links.

    In dm0139, the linked field is the CustNo, therefore
    the detail data must be order like this:

    CustNo OrderNo
    ------ -------
    1 001
    1 002
    1 003
    2 010
    2 009
    2 005



    --
    Tech Support mailto:support@digital-metaphors.com
    Digital Metaphors http://www.digital-metaphors.com



    Best regards,

    Nard Moseley
    Digital Metaphors
    www.digital-metaphors.com
  • edited February 2006

    The popup menu Groups... will be fixed for the next maint release.



    Best regards,

    Nard Moseley
    Digital Metaphors
    www.digital-metaphors.com
This discussion has been closed.