Click here to Skip to main content
15,887,214 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
I work in visual studio 2015 windows form .

I have textbox for name and combobox for country and button and report viewer control

I need when click button get value from text box name and combox country and show these

values in report viewer ?

How to do that by c# ?

suppose i write
name michel
country USA
press button print
get the values of
michel
USA
in report viewer

What I have tried:

How to pass values of textbox and combo box to report viewer directly without using database ?
Posted
Updated 18-Jan-17 18:50pm

1 solution

on your report viewer page; you can add parameters(there is option to do so) and through your coding you can assign text box values to your report viewer.

e.g.
rp1.parameters.add("@param",textbox1.text);

try this way.


if things work for you accept the solution.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900