Question Reporting?

Meera

Member
Joined
Jun 26, 2010
Messages
11
Programming Experience
Beginner
hi!
how to pass parameters to a RDLC report?
i have a form holding a Report viewer, Textbox & button.
When the form is executed, i need to enter value to the textbox as parameter, which in turn should retrieve the result in the report viewer.
Kindly let me know the VB.Net codings..

Thanks,
Meera.
 
Hi let me xplain a detail what i have done till.
this is a windows application prj. in a Vb form i ve dropped a report viewer with a data set. a text box and a button.
i did added a variable to the query of dataset, which resulted in a creation of toolstripbutton (I dont want this strip displayed).
heres my code

Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
Dim Code As New ReportParameter("Code", TextBox1.ToString)
Dim p() As ReportParameter = {Code}
'TODO: This line of code loads data into the 'Invoices.SalesInvoice' table. You can move, or remove it, as needed.
Me.SalesInvoiceTableAdapter.Fill(Me.Invoices.SalesInvoice)
Me.ReportViewer1.LocalReport.SetParameters(p)
Me.ReportViewer1.RefreshReport()
End Sub

i wud like to get it displayed after clicking the button. how to achieve it
 
Back
Top