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

Multiple Subreports

edited September 2002 in Subreports
Hi all,

a very simple (?) problem :

I want to print several subreports (dynamic height) chained together,
without starting a new page.

I tried putting them on different bands (Title/header/summary), as
Child/Region/Fixed, but never get the result I wanted.
Also I tried putting them all in one main-report, and chaining the
subreports in the summary of the previous one (as described in the Help)


any clues ?

kind regards,

Dirk Janssens.

Comments

  • edited September 2002
    Place all of the subreports in the same band of the main report. Set
    subreport 2 to ShiftRelativeTo subreport 1. Set subreport 3 to
    ShiftRelativeTo subreport 2. ShiftRelativeTo is a property of the child
    subreports. Make sure that the Subreport.PrintBehavior property is set to
    pbChild.


    Cheers,

    Jim Bennett
    Digital Metaphors

  • edited September 2002
    Hi Jim,

    I tried that one also, but the reports are printed on top of eachother,

    Is there some property I am missing ?

    btw : The first has a BDE-pipeline, the second a JIT-pipeline. I make them
    in the Report-Exporer ("end-user").

    regards,

    Dirk.
  • edited September 2002
    Can you create a report using our demo report explorer which doesn't work
    and send us the layout which isn't working to support@digital-metaphors.com
    Child type subreports should shift relative to each other.


    Cheers,

    Jim Bennett
    Digital Metaphors

  • edited September 2002
    > Can you create a report using our demo report explorer which doesn't work
    support@digital-metaphors.com

    Maybe this will help :

    I made a very simpel report in *designtime* containig 2 subreports,
    Printbehaviour Child, Sub2 Shiftrelative to Sub1. That works fine: the two
    subreports are chained together.
    I save the report to file.

    Then I load the same report from file into the reportsexplorer.
    Now, the 2 subreports are printed on top of each other....


    kind regards,

    Dirk Janssens.
  • edited September 2002
    Maybe I should mention I'm using

    Delphi 5
    RB 6.03

    Both subreports use JIT-pipelines.

    regards,

    Dirk.

  • edited September 2002
    Can you send us your simple project? Since you are using JITs then you can
    contrive a few records for us and we should be able to reproduce the error
    this way. Send it to support@digital-metaphors.com


    Cheers,

    Jim Bennett
    Digital Metaphors

  • edited September 2002
    Hi Jim,

    I just have send you a little demo.
    I hope you find what's wrong with it,

    regards,

    Dirk.


  • edited September 2002
    I've emailed you a patch.


    Cheers,

    Jim Bennett
    Digital Metaphors

  • edited September 2002
    Thanks Jim, it works fine now.
    (not with the patch: I had an error message ... compiled with an other
    version of...)

    Removing the other report from the form solved it for me.

    For other user who have the same problem :
    The problem/bug only appears if more then 1 report is on the form.

    thanks again,

    kind regards,

    Dirk.



  • edited October 2002

  • edited October 2002
    The fix is included in RB 7. I was able to send a patch to Jan because this
    was before we released RB 7 for Delphi 5. Please upgrade to RB 7 for Delphi
    5. Order from our website www.digital-metaphors.com or contact
    info@digital-metaphors.com with your registration information to upgrade
    today.


    Cheers,

    Jim Bennett
    Digital Metaphors

  • edited October 2002

This discussion has been closed.