ASP.NET MVC + SSRS + Embedded Report

Does anyone know of a method for embedding SQL Server Reporting Services (SSRS) reports in an MVC application? We use only Razor Views and do not want to add any .aspx pages to our application.

+4
source share
3 answers

You have two options:

  • Direct link .rdlc: link
  • Include a web form project with your MVC link project

It seems you are not too keen on two existing web frameworks, so the first option might be the best choice.

+8
source

If you need to view the main report, this option will display in the code and stream in Aift. Since the report viewer is a server control, and server controls were usually developed using web forms, otherwise you hacked it, i.e. You can not

Why not just include the folder for aspx? You lose nothing but theoretical purity in order to stay away from web forms, for which control was intended. If you want to take a hit with .ascx contol, you can enable it so that you can buy again, you use web forms.

+1
source

I had a similar request in my project. In the end, I set up an ASP page that displays my reports using the ReportViewer control. I added the MVC.cshtml file with iframe. Using the iframe name property, I set report.aspx to iframe.

+1
source

All Articles