report viewer stops displaying report after adding a parameter RRS feed

  • Question

  • Hello all,

    I am running VS2015 and using report viewer which stopped displaying the report after I add a parameter. I thought it might have been my complex project and report, so I created a new basic project with only a report viewer and a report. The report has no dataset and only one parameter, it is as basic as it can be. The report will view ok until I add a parameter with the code below. I don't believe this is a code issue but a VS issue.

    Any help would greatly be appreciated!!!

    Option ExplicitOn
    Imports System.Windows.Forms
    Imports Microsoft.Reporting.WinForms

    Public ClassfrmReportViewer
    PrivateSubForm2_Load(sender AsObject, e AsEventArgs) HandlesMyBase.Load

    Dimparams(1) AsMicrosoft.Reporting.WinForms.ReportParameter
    params(0) = NewMicrosoft.Reporting.WinForms.ReportParameter("Test1", "Test1")ReportViewer1.LocalReport.SetParameters(params)

    End Class

    • Edited by GlennFoster Saturday, May 19, 2018 11:06 AM
    Saturday, May 19, 2018 10:47 AM