|
I want to display the type of bill in my report. For that I have put the combo box in data entry form(Form1) which enables user to select the type of copy whether it is original,duplicate or triplicate. I want to assign the selected value of the combo box(of Form1) to the text box which resides under the report(.rdlc file) How to assign the control's property to the text box inside the report? Please help. |
Loading
Alok UniyalPosted Mar 9, 2013, 2:51 AM
You can pass value of combobox to textbox of RDLC report. You can pass the value through parameters.
1. Open Report in design view.
2. Open "Report Data" panel from menu- View>Report Data
3. Now you can see parameters there .
4. Add parameter by right click for example you add parameter "Txtbox1".
5. Now right click on textbox in rdlc report and click "Expression...".
6. A form will open where you can see expression.You can see list of categories at bottom of form. Select "Parameter" field from list. A list of parameter will be shown. Select parameter "Txtbox1".
By above process you set parameter to your text box.
Now you have to pass parameter to report by c# code or vb whatever u r using.
reportViewer1.LocalReport.SetParameters(param);
this.reportViewer1.RefreshReport();
vikas manhasPosted Jun 12, 2015, 5:50 AM
ZAIN ULARIFEENPosted Jun 18, 2013, 2:58 PM
can you explain me the step no 5,6 .
plz,plz, help me ok