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

Multiple sub reports

edited July 2001 in General
I am printing a series of reports, all of which have identical detail bands
but different subreport bands. The subreports are fairly complex and
require extensive calculations to complete the information shown on the
band, therefore I, rightly or wrongly, ruled out creating the bands
dynamically at run time.

Would I be better off, and is it possible, designing the report with
multiple subreports, at the same level, and toggling their visible property
based on the report being printed, or would it be preferable to create
separate reports?

Thanks for your input,

Les

Comments

  • edited July 2001
    > I am printing a series of reports, all of which have identical detail
    bands
    property

    Les:

    It depends...

    It is up to you, and your end-user's needs. I have a series of reports where
    a user can select any of a set. I edit them at run time as single reports
    and store them in a DB. When I go to print the selected set, I load them
    into a single report as section-style sub reports. This way the end user
    only sees one print job.

    Is your request possible? Sure but are you better off? I don't know. In my
    app, there is no logic inside of my application to manage the details of any
    single report--just the management of all the reports generically. This
    makes the coding a lot clearer. Makes long term management a lot easier, and
    when the product grows, I don't have to test every single report as there is
    nothing in the app that specifically affects each one.

    Your proposal to put them all in one report would require logic in the app
    on which one is being printed. I would shy away from this if your
    application is going to grow in the future.

    HTH,
    Ed Dressel
    Team DM
  • edited July 2001
    One more feature, to be aware of, is that subreports can be loaded at
    runtime. There is a demo of loading them in the /RBuilder/Demos/EndUser
    installed directory.


    Cheers,

    Jim Bennett
    Digital Metaphors


This discussion has been closed.