Using Microsoft Report Viewer in a .NET 4.7.2 ASP.NET MVC App

Brandon Owensby 1 Reputation point
2021-06-22T15:51:09.847+00:00

I'm trying to add a page to an MVC app using Razor. I've seen articles that refer to passing the ReportViewer object into the view and calling Html.ReportViewer to render it but that method doesn't exist. From what I can tell that may only exist if you use a older non microsoft nuget package. I'm curious if there is another way...or what the recommended way to use the report viewer...or for that matter to display an SSRS report in a razor page.

SQL Server Reporting Services
SQL Server Reporting Services
A SQL Server technology that supports the creation, management, and delivery of both traditional, paper-oriented reports and interactive, web-based reports.
3,061 questions
Developer technologies ASP.NET Other
Developer technologies C#
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Yijing Sun-MSFT 7,096 Reputation points
    2021-06-23T02:47:31.3+00:00

    Hi @Brandon Owensby ,
    Microsoft has not release SSRS viewer for ASP.NET MVC yet.So,I think you could install ReportViewerForMvc.It use reportview control in your view.
    More details,you could refer to below article:
    https://www.c-sharpcorner.com/article/how-to-display-ssrs-report-in-asp-net-mvc-web-application/
    Best regards,
    Yijing Sun


    If the answer is helpful, please click "Accept Answer" and upvote it.

    Note: Please follow the steps in our  documentation  to enable e-mail notifications if you want to receive the related email notification for this thread.


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.