How To Pass Parameter to .rdlc ReportGSg s11yAsked May 16, 2015, 6:16 AM7.3k.NETHow To Pass Particular (Control ID) Parameter to .rdlc Report or Crystal Report Using Asp.Net C#
SL G11y agoPosted May 19, 2015, 5:35 AMAccepted answerPass Particular Control Value Check Below Link http://dotnetdrizzles.blogspot.in/2014/10/how-to-pass-particularwhere-condition.html http://screenshotdrizzles.blogspot.in/2014/10/how-to-pass-particular-control-id.html
Manoj Bhoir11y agoPosted May 17, 2015, 1:24 AMHi,You can use ReportParameterCollection and ReportParameter. Please see this code :ReportParameterCollection ReportParameterCollection = new ReportParameterCollection();ReportParameterCollection.Add(new ReportParameter("param1", "paramvalue"));ReportParameterCollection.Add(new ReportParameter("param2", "paramvalue"));this.ReportViewer1.LocalReport.SetParameters(ReportParameterCollection);Fore more details check these links :ReportParameterCollection Classhttps://msdn.microsoft.com/en-us/library/microsoft.reporting.winforms.reportparametercollection%28v=vs.100%29.aspxReportParameter Classhttps://msdn.microsoft.com/en-us/library/microsoft.reporting.webforms.reportparameter%28v=vs.90%29.aspx
SL GPosted May 19, 2015, 5:35 AM
Manoj BhoirPosted May 17, 2015, 1:24 AM
You can use ReportParameterCollection and ReportParameter. Please see this code :
ReportParameterCollection ReportParameterCollection = new ReportParameterCollection();
ReportParameterCollection.Add(new ReportParameter("param1", "paramvalue"));
ReportParameterCollection.Add(new ReportParameter("param2", "paramvalue"));
this.ReportViewer1.LocalReport.SetParameters(ReportParameterCollection);
Fore more details check these links :
ReportParameterCollection Class
https://msdn.microsoft.com/en-us/library/microsoft.reporting.winforms.reportparametercollection%28v=vs.100%29.aspx
ReportParameter Class
https://msdn.microsoft.com/en-us/library/microsoft.reporting.webforms.reportparameter%28v=vs.90%29.aspx