Click here to Skip to main content
13,795,821 members
Rate this:
 
Please Sign up or sign in to vote.
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:

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

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

1 solution

Rate this: bad
 
good
Please Sign up or sign in to vote.

Solution 1

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[^]
  Permalink  

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

  Print Answers RSS
Top Experts
Last 24hrsThis month


Advertise | Privacy | Cookies | Terms of Service
Web02 | 2.8.181207.3 | Last Updated 16 Apr 2018
Copyright © CodeProject, 1999-2018
All Rights Reserved.
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100