Call SSRS Report From ASP.NET

Call SSRS Report From ASP.NET

To call SSRS Report from ASP.NET Web application, go through below steps : 1. First of all open Visual Studio 2008 then go to  New >> WebsiteCall SSRS Report From ASP.NET-1   2. Then Browse the directory where you want to save New Web Site. Call SSRS Report From ASP.NET-23. Now In your web page add following controls:

  • One ScriptManager
  • One Button
  • One MicrosoftReportViewer

So your web page design will look like following: Call SSRS Report From ASP.NET-34. Now add following code on button’s click event in your .cs file :

using Microsoft.Reporting.WebForms;

    MyReportViewer.ProcessingMode = ProcessingMode.Remote;
    MyReportViewer.ServerReport.ReportServerUrl = new Uri("http://bhushan-pc:8080/ReportServer");
    MyReportViewer.ServerReport.ReportPath = "/StartSSRS/PersonAddressDetails";
catch (Exception ex)

Call SSRS Report From ASP.NET-4 5. Now Run your website and click on Get Report Button. It will show following results shown in web page : Call SSRS Report From ASP.NET-5 Congratulations! We successfully called our SSRS report from ASP.NET web application.