Managing Reports with Sub-Reports
Our sample projects and report templates can help you learn the basics of working with our products.A master report can host sub-reports that pull their own data, so a complex document is composed from independent templates.
Load the master report. Its sub-report components reference the nested templates; loading the master renders the whole composition:
How it works. Each sub-report renders in the context of the master's current row, producing master-detail output from separately maintained templates.
Load the master report. Its sub-report components reference the nested templates; loading the master renders the whole composition:
var report = new StiReport();
report.Load(AssetLoader.Open(new Uri("avares://…/SimpleList.mrt")));
report.CalculationMode = StiCalculationMode.Interpretation;- The master
.mrtcontainsStiSubReportcomponents bound to its detail bands. AssetLoader.Open(new Uri("avares://…"))— loads a template embedded in the Avalonia app package.
How it works. Each sub-report renders in the context of the master's current row, producing master-detail output from separately maintained templates.