Quantcast
Channel: VBForums - Visual Basic .NET
Viewing all articles
Browse latest Browse all 27156

ReportViewer Cannot Add Parameters?

$
0
0
Hello,

I have managed to set a dataset to my tablix on my report viewer that will hold all items belonging to a bill. The issue I present you with is I cannot seem to add any parameters to my textboxes in my .rdlc report. Is this because I have added a connection to my database? Before I added my connection I could easily add parameters, but not anymore. Take a look at my report:

Attachment 96711

All the red rectangles is where I would usually have my parameters. Is there a way to programmatically do this?

Code:

Dim rpJobNum = New ReportParameter("tbJobNo", JobNum)
rv.rvRdlc.LocalReport.SetParameters(rpJobNum)

rv = my report viewer form
rvRdlc = my report viewer control
tbJobNo = my textbox' job number name
JobNum = variable which holds the respective value (ex: 10000)

If I execute that,I will receive an error:
Attachment 96713

Thanks in advance
Attached Images
   

Viewing all articles
Browse latest Browse all 27156

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>