VB.Net New Report Parameter Error

Posted by: jallison on 12 July 2018, 11:01 am EST

    • Post Options:
    • Link

    Posted 12 July 2018, 11:01 am EST

    New Active Reports user here. Trying to understand the custom web exporting section in the documentation.

    I have a report that requires a parameter. (String) When trying to declare a new report parameter I get an error “Overload resolution failed because no ‘New’ is accessible” when trying to declare param2.

    Thanks in advance for your help.

     Dim report As New GrapeCity.ActiveReports.PageReport(New System.IO.FileInfo(Server.MapPath("") + "\reports\LocalSiteAddress.rdlx"))
            Dim reportDocument As New GrapeCity.ActiveReports.Document.PageDocument(report)
            Dim param2 As New GrapeCity.ActiveReports.Expressions.ExpressionObjectModel.Parameter
            Dim param3 As New GrapeCity.ActiveReports.Expressions.ExpressionObjectModel.ParameterValue
            param3.Label = "Local"
            param3.Value = CurrentUser.Info.MembershipInfo.LocalNumber
            param2.Values.Add(param3)
            reportDocument.Parameters.Add(param2) 
    
  • Posted 13 July 2018, 5:38 am EST

    Hello,

    Please refer the attached sample to add parameter at runtime.

    Thanks,

    Mohit

    prj_parameter.zip

Need extra support?

Upgrade your support plan and get personal unlimited phone support with our customer engagement team

Learn More

Forum Channels