• Debby,

    You can pass in the ServerName and Database in the URL like this:

    You need to have ReportViewer first and set its ReportServerURL property first:

    http://localhost/ReportServer

    Then do this in your code. you need to put your own server Name and database name and the path.

    ReportViewerS1.ReportPath =

    String.Format("/MyReportsFolder/ReportName&ServerName={0}&DatabaseName={1}", "Dev","Northwind")

    Hope that helps.

    Bilal