Click here to Skip to main content
15,881,938 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I design a rdlc report with "txtpayee" parameter and a text box with an expressing of
"=Parameters!txtpayee.value"
I want to pass the value from my combobox to the textbox in my report. The problem is when i try to do it, it pass the value but not in the textbox instead it creates another page.

What I have tried:

VB
Dim params = New ReportParameter
params.Name = "txtpayee"
params.Values.Add(cmb_payee.Text)

With frm_rpt.ReportViewer1
     .LocalReport.SetParameters(params)
     .RefreshReport()
End With
Posted
Updated 16-Apr-18 17:29pm
v3

1 solution

You should be able to use SetParameterValue method. Have a look at ReportDocument.SetParameterValue Method (String,Object,String)[^].

Also there are some example in Programmatically Pass Parameters into Crystal Reports from ASP.NET (C#) - Part 1[^]
 
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