I am getting the following error when I produce a report which contains a sub report, and the sub report relies on filtering using a parameter: - The expression contains object 'parExpenseFormId' that is not defined in the current context. It doesnt seem to recognise that I have already added the parameter although I have.
This worked absolutely fine in an older version of Telerik Reporting but I have now had to upgrade to version 184.108.40.206 (Q2 2010) I am getting the error. I cannot use Q3 because it has another bug which prevents me from using it.
Can someone please help me - I am generating my SubReport in the following manner:
1. Main Report
oSubRep = new SubReport();
Report oEntriesRep = ExpenseEntriesReportBuilder.GetReport(); // Create the sub report (see extract below)
new Unit(735, UnitType.Pixel);
oEntriesRep.DataSource = dsData.Tables;
oSubRep.ReportSource = oEntriesRep;
oDetails.Items.Add(oSubRep); // Add the subreport to the details section of the report
2. This is how I generate the actual sub Report
Report oRep = new Report();
oRep.PageSettings = GetPageSettings();
new Filter("=Fields.[expense_form_id]", FilterOperator.Equal, "=Parameters.parExpenseFormId"));
Thanks in advance