A master report can host sub-reports that pull their own data, letting you compose complex documents from independent templates.

Loading the master. Load the template (its sub-report components reference the nested reports) and display it:
private StiReport GetReport(string name)
{
    var report = new StiReport();
    using (var stream = Assembly.GetExecutingAssembly()
        .GetManifestResourceStream("Managing_Reports_with_Sub_Reports." + name))
    {
        report.Load(stream);
    }
    return report;
}

GetReport("MasterDetail.mrt").Show();

How it works. Each sub-report renders in the context of the master's current row, producing master-detail output from separately maintained templates.

By using this website, you agree to the use of cookies for analytics and personalized content. Cookies store useful information on your computer to help us improve efficiency and usability. For more information, please read the privacy policy and cookie policy.