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

Reuse same subreport from Summary Band?

edited May 2003 in Subreports
Is it possible to call the same subreport multiple times from the same
Summary band?

Have an accounting pgm that needs three invoices printed after all the
detailed
pages have been generated. Basic structure of the invoices are exactly the
same but, #2 has a visible lable that says "Copy", and #3 changes that lable
to
"Accounting". Label changes can be done via variables using BeforePrint.

Best way to perform?

TIA
Steve

Comments

  • edited May 2003
    You'll either have to use 3 subreports, or place the subreport in a
    subreport. The outer parent subreport can then be connected to a JIT
    Pipeline that has a record count of 3. This way you can force the parent
    subreport to print the 3 detail bands. When the detail bands print, they
    print a copy of the real summary subreport. You'll need to control the label
    changes in the parent subreport's DetailBand.BeforePrint event which will
    fire before the subreport gets a chance to print each time.


    Cheers,

    Jim Bennett
    Digital Metaphors


This discussion has been closed.