i want to use value of variable name ReportTitle in rdlc report
my c# code is:
this.Report1.LocalReport.ReportPath = @"Report1.rdlc";
ReportParameterCollection reportParms1 = new ReportParameterCollection();
reportParms1.Add(new ReportParameter("ReportTitle", "My Report");
this.Report1.LocalReport.SetParameters(reportParms1);
rdlc code:
<ReportItems>
<Textbox name="ReportTitle">
<Value>=Parameters!ReportTitle.Value>
</Textbox>
</ReportItems>
i am getting exception error in setParameter()Line
Exception is "Error occured during local report processing" Inner Exception is "The definition of report is invalid" Inner Exception is " The Value expression for Textbox refers to an non existing report Parameter