Home Subreports
New Blog Posts: Merging Reports - Part 1 and Part 2

Subreport always keeps together

edited August 2003 in Subreports
Hi,

I've got a little problem, but can not solve it:

I have a report with one subreport in the detailband. The subreport's length
depends on the number of records of the used JIT Pipeline. Works fine.
But if the page comes to the end, the subreports data is totally reprinted
on the next page, beginning with the first record again. As a result the
number of pages is unlimited. How can I prevent the subreport from
reprinting all data on the next page instead of going on with the current
record number ? Do I need to create a group ? If so, how can I bring the
group to a break in a JIT record ?

Thanx

Joachim

Comments

  • edited August 2003
    You mention a JITPipeline. Is it configured as master detail using the
    MasterFieldLinks and MasterDataPipeline proereties? The subreport shouldn't
    reprint. If it does, then it sounds like a bad master detail configuration?
    Is the deta data ordered the same as the master data coming through the
    JITPipeline? RB won't automatically create a master detail ordering for you.

    Make sure the master is printing correctly without a detail subreport. Then
    try creating a new report which only prints data from the second
    JITPipeline. This way you can verify that the main report works as it should
    and that the detail report works when isloated as a main report. Then try
    setting up the master detail relationship in a report which has subreport.
    Also, make sure you set the subreport's PrintBehavior to be a child type
    subreport and not a section style subreport.


    Cheers,

    Jim Bennett
    Digital Metaphors


  • edited August 2003
    Hi Jim,

    I don't have Master Pipeline, only Detail. The thing is the following: I'm
    looking for a solution for printing stringgrids with report builder for many
    years. I need to assign TStringgrid to a report and don't find any solution
    (why?). So I decided to create a TppStringgrid component that works like
    this: Create it and assign Mainreport (TppReport) plus TStringgrid. The
    components creates a JIT itsself and for each stringgrid-column a tppField
    and a TppDBText. The user just adds a subreport to the Mainreport and
    chooses the new created "GridJIT" as the subreports datapipeline. That's
    fantastic with only the one described problem with reprinting on each new
    page.

    I can not try your suggestion, because I don't have any master pipeline.
    Only tppReport with tppChildreport in detailband. (PrintBehavior both child
    type).


    Do you have a better solution ?

    Thank you
    Joachim



    --
    Joachim Schonart
    Sportsoftware Hille GbRmbH
    - Entwicklungsabteilung -
    Tel.: +49/(0)5323 / 948 828
    Fax: +49/(0)5323 / 948 834
  • edited August 2003
    The subreport is going to generate for all the records in the JIT everytime
    it gets a chance to print. If there is no master detail configuration, then
    connect the main report to the JIT and don't use a subreport. That would
    make the layout simpler, since the main report the way you have it now is an
    empty driver for the subreport as it isn't connected to a data pipeline.


    Cheers,

    Jim Bennett
    Digital Metaphors


This discussion has been closed.