doaji 0 Newbie Poster

i am trying to set the values of my parameters from my code. i have been doing this with VS 2008, but its not working for ReportView 2010.

here is a snippet of my code

ReportViewer1.LocalReport.SetParameters(new ReportParameter("RP1", "Office")) ;
ReportViewer1.LocalReport.Refresh();
I have tried everything i know and read everything, please what am i doing or not doing?

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.