Hi
Is it possible to export more than one generated reports to one file (pdf, excel etc?)?
E.g. we have a collection of StiReport objects with different templates and different data sources and we want to create one pdf (or any other) file that will contain all repots one by another?
Export more than one report
Export more than one report
Hello!
You can use following code:
After this code you can export report resultReport.
Thank you.
You can use following code:
Code: Select all
StiReport resultReport = new StiReport();
foreach (StiPage page in report1.RenderedPages)
{
resultReport.RenderedPages.Add(page);
page.Report = resultReport;
}
foreach (StiPage page in report2.RenderedPages)
{
resultReport.RenderedPages.Add(page);
page.Report = resultReport;
}
.....
.....
Thank you.