So I was thinking along the lines of being able to handle this with a while loop.
Anyone have any forethought on pros/cons before I get started.
Thanks
Code:
if (report.Subreports.Count > 0)
{
//Only support 1 subreport
//Get the object that can retrieve the data for the subreport
Type objectType1 = Type.GetType(currentReport.SubReportObjectName);
//The methods must be static for this data.
//To fix need to loop through Method field and build report.Subreports Array....
object[] subreportData = (object[])objectType1.InvokeMember(currentReport.SubReportMethodName, BindingFlags.InvokeMethod, null, objectType1, newobject[] { });
report.Subreports[0].SetDataSource(subreportData);
}