vb.net Pass Value to Parameter of Report using Reportviewer

        Dim SALES_ORDER_NUMBER As String
        Dim INVOICE_NUMBER As String
        SALES_ORDER_NUMBER = CRMInvoicing.txtSALES_ORDER_NUMBER.Text
        INVOICE_NUMBER = CRMInvoicing.txtINVOICE_NUMBER.Text
        Dim parmSO As New ReportParameter("SALES_ORDER_NUMBER", SALES_ORDER_NUMBER)
        Dim parmI As New ReportParameter("INVOICE_NUMBER", INVOICE_NUMBER)
        Dim parmSO1(1) As ReportParameter
        parmSO1(0) = parmSO
        parmSO1(1) = parmI

        ReportViewer1.ServerReport.SetParameters(parmSO1)
        Me.ReportViewer1.RefreshReport()
Advertisements
By simplemsexchange Posted in VB.NET

2 comments on “vb.net Pass Value to Parameter of Report using Reportviewer

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s