Hi ,
i have added a subreport in group header section, now i want to link all fields which are grouped in main report with the subreport fields.
main report and subreport have same datasource.
but my code returns error "invalid field name".
with addition to this i need to add parameter field to the subreport.
how to proceed.......
for (int L = 0; L <= ArrGrpFields.Length - 2; L++)
{
objSRLink = new CrystalDecisions.ReportAppServer.ReportDefModel.SubreportLink();
objSRLink.MainReportFieldName = ArrGrpFields[L].ToString();
objSRLink.SubreportFieldName = ArrGrpFields[L].ToString();
objSRLinks.Add(objSRLink);
}
objSRCtrl.SetSubreportLinks("testSub", objSRLinks);
Thanks in Advance
Padmanaban V