Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to pass textbox/Combobox value to rdlc report text field?

c#, mysql in my project.

In that i create a rdlc report. I dont know to pass winform textbox value to rdlc report text field.

I googled and try some set of code. but cant get that.

If you worked in report. please help me.

My requirement is,..

I am doing college project. In that they asked bonafide certificate. So i create a winform With reportviwer, name, course, year, semester, academic year, purpose textboxs and one button. Click the button when the textboxes are filled. those text values want to pass the record textboxes.

Is it possible any way.

my report...

enter image description here

like image 495
Sagotharan Avatar asked Jun 10 '11 05:06

Sagotharan


1 Answers

Set the parameters using LocalReport property in the Report Viewer

C# Code :

ReportParameterCollection reportParameters = new ReportParameterCollection();
reportParameters.Add(new ReportParameter("ParameterName", "Value"));
this.reportViewer.LocalReport.SetParameters(reportParameters);
like image 131
Prasanna Avatar answered Oct 04 '22 12:10

Prasanna