I am tryign to access all subreports that are part of the main report. But it is always giving me there are no subreports. I tried to test this with the sample subreport that is part of the demo (SideBySideListWithSubReports.mrt)..
Here is the code
Code: Select all
StiReport stiReport1 = new StiReport();
stiReport1.Load("SideBySideListWithSubReports.mrt");
foreach (StiReport report in stiReport1.SubReports) {
//do something for each report..
}
Thanks in advance
-Raja