ReportViewer1 textboxes

sacrokings

New member
Joined
Oct 4, 2006
Messages
1
Programming Experience
1-3
I was wondering if there is a way to assign values to a textbox on a(n) report.rdlc? Where the value come from a form textbox. I know you can drag a field from your dataset to the *.rdlc report, but I am looking to assign it something like this.

this code would be in the reportviewer form load(possibly)

dim rpt as new form1

(rptview) textbox1.text = rpt.txtsometext.txt

does anyone know if this is possibly???
any help would be great!!!!
 
report parameter

Create a report parameter and place it as expression in that perticular textbox.

Set the value of the parameter to the value in the forms textbox.

Do you need help passing a parameter to a report? Search this forum.

I don't use *.rdlc reports, I use Crystal Reports. I did find an example on google that looked like this:
VB.NET:
Dim p0 As New ReportParameter("ParameterVariable", "Value")
ReportViewer1.LocalReport.SetParameters(New ReportParameter() {p0})
Hope that's enough to get you started...
 
Back
Top