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

Loading subreports ?

edited April 2012 in General
Hi
Is it possible to load subreports dynamically from templates ?
I need to make a report consisting of 1 to 5 subreports of varying contents.
I consider having a simple masterreport (without pipeline) containing 5
subreports each with ShiftRelativeTo pointing to the subreport above.
But then I want to load different templates into the 5 subreports
depending on what the user has selected.

René/SSV

Comments

  • edited April 2012
    Hi Rene,

    Yes it is possible to load templates into subreports.

    Subreport.Report.Template.FileName := '';
    Subreport.Report.Template.LoadFromFile;

    Best Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com
This discussion has been closed.