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.

Используя этот сайт, вы соглашаетесь на использование файлов Cookie для аналитики и персонализированного контента. Файлы Cookie хранят полезную информацию на вашем компьютере, чтобы помочь нам повысить эффективность и удобство использования. Для получения дополнительной информации, пожалуйста, прочтите Конфиденциальность и Использование Cookie.