Can I assign values to a ReportViewer during the Run-time ?

  • Dear all,

    Can I assign values to a ReportViewer during the Run-time ?

    C#

    ReportViewer1.ServerReport.ReportPath = "/Human_Department/Department";

    ReportViewer1.ServerReport.ReportServerUrl = "http://dev7/ReportServer$dev7003";

    The 2nd statement always says : Cannot implicitly convert type 'string' to 'System.Url'.

    I want to do this because I want to add input parameters to the Report through my C# program rather than the SQL Report's own parameter input screen.

    Why ? Because I want to use my own validation rules.

    Can I assgin values to a ReportView's ReportServerUrl during the Run-time ?

  • hi,

    for the 2nd issue;

    try ReportViewer1.ServerReport.ReportServerUrl =newUri("http:/blablabla")

    instead of ReportViewer1.ServerReport.ReportServerUrl = "http://blablabla"...

Viewing 2 posts - 1 through 1 (of 1 total)

You must be logged in to reply to this topic. Login to reply