Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

RDLC parameter passing

Status
Not open for further replies.

alex5935

Programmer
Oct 24, 2007
13
US
I am adding parameter to my report in the design view and at the run time I am setting it's value code below:

paramList.Add(
new ReportParameter("ReportYear", "2003", false));

this.reportViewer1.ServerReport.SetParameters(paramList);

// Process and render the report
reportViewer1.RefreshReport();

Is the name of the parameter should match the name of the column in datatable?

Because, I don't see any results from the parameter settings it's still showing original data without any filtering applied to it.

Is there anything in the report designer I may have to change?


 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top