I found this similar thread, but it has no answer, there is only a suggestion that didn't work for me. So I decided to create a new question as there is no question like mine with an answer.
Everything is working FINE with my reportviewer
. I need to create a expression on my rdlc
file that receives a value as parameter.
I created a new parameter on my rdlc
file named usr
.
This is my code for pass the parameter, also here is where the error is firing:
ReportViewer1.LocalReport.SetParameters(new ReportParameter("usr", "Hellow"));
Also tried this:
ReportParamter[] param = new ReportParameter[1];
param[0] = new ReportParamter("usr" "Hellow");
ReportViewer1.LocalReport.SetParamters(param);
Didn't work aswell.
I'm sure the path of my reportviewer
and everything else are OK, I'm 100% sure !
the problem is with this line that I have no idea how to solve.