I have a form named “FormPay” and a textBox named txtAmount. Is it possible to pass the data from txtAmount to the textBox of my report?
I’m using c# report viewer.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
The easiest way to get data into your report is by passing in data via parameters, one you add a parameter to your report you can then use the following code to pass in a value.
ReportViewer.SetQueryParameter(“ParameterName”,txtAmount.Text);
There are a lot of options you can set/change, for example you can also hide the parameter if you don’t want it visible on the report.