locked
Code help for passing multiple report params from winform RRS feed

  • Question

  •  I am trying to pass several params from the winform to the report.  I found a coding example of how to pass one param, but I have not been successful in my attempts to pass multiple params in the winform (already added params to the report). 


    Dim rp As New Microsoft.Reporting.WinForms.ReportParameter("UserName", GlobalsClass.strUserName)
    Dim p As New System.Collections.Generic.List(Of Microsoft.Reporting.WinForms.ReportParameter)
    p.Add(rp)
    Me.ReportViewer1.LocalReport.SetParameters(p)
    Me.ReportViewer1.RefreshReport()


    anyone care to show me how to pass multiple params using the code above?
    Friday, September 19, 2008 7:58 PM

Answers