Programatically Accessing Subreports
Posted: Wed Aug 29, 2007 9:32 am
Hi,
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
It loads the report properly but it never gets to for loop. Am i missing something here..
Thanks in advance
-Raja
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