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

Loading identical Header Band Subreport into multiple section style subreports

edited August 2005 in Subreports
I have a complex report that uses a mixture of section and child type subreports. The report creates a single document, each with the same header. Each section currently has a header made up of several images. I need to create a white label version of the report so that it can be rebranded easily. I can create the necessary branded image in an rtm and load into a subreport contained in the header, but this requires me to create many subreports that are empty if I do it at design time. Can you suggest the best way of creating the subreport dynamically at run-time, placing it in the header with the correct dimensions, then loading the rtm from file. Is it just a question of assigning the header band to a created subreport? Can I do this in the header Onprint event, or does it need to be sooner?

Hope you can help

Will

Comments

  • edited August 2005

    1. You need to create the subreport's prior to calling report.Print. Do not
    create them while the report is generating.

    2. The CodeBase thread of the Tech Tips newsgroup contains an article called
    "Creating a SubReport in Code" that provides an example.




    --
    Nard Moseley
    Digital Metaphors Corporation
    http://www.digital-metaphors.com


    Best regards,

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