Hi,
I have a main Report which has a SubReport.
This SubReport also has a SubReport.
I set the data of my main Report and Subreport through code
DataSet dsMainReport = daLayer.GetMainReportData();
DataSet dsSubReport = daLayer.GetSubReportData();
string fileOutputPath =
Server.MapPath("../Reports/MainReport.rpt");
// Load the report
crReportDocument.Load(fileOutputPath);
//declare the tables
crTables = crReportDocument.Database.Tables;
//assign tables
crReportDocument.Database.Tables[0].SetDataSource(dsMainReport.Tables[0]);
crReportDocument.Subreports[0].Database.Tables[0].SetDataSource(dsSubReport.Tables[0]);
For the SubReport's SubReport I have set it to use a field on the SubReport
of the Main Report. Yet this SubReport does not get displated.
I only see the Main Report and it's SubReport.
Anyone know why? Can I have a Subreport which in turn has a SubReport?
Thanks. |