Thursday, October 15, 2015

How to add ReportViewer Control to Visual Studio 2012 Express

ASP.Net MVC Views in fact are ASP.Net web forms without View State. To incorporate SSRS reports, a web form control named Report Viewer is needed. Since Report Viewer is a web form control, you need to add ASP.Net web form to host the Report Viewer control. You can easily add Web Form in ASP.Net MVC project for this purpose.

Report Viewer is under Visual Studio Toolbox. If you can't find the control, following steps would help you to install it.

First, install the 2012 Report Viewer Runtime, which is a free download on Microsoft's website:
http://www.microsoft.com/en-us/downl....aspx?id=35747

Second, open Visual Studio 2012 Express, go to Tools, and click Choose Toolbox Items.

Third, scroll down the list, you would find 2 ReportViewer control, one is for WebForms,  and the other is for WebForms. Both of them are version 10.0.0.0. You need to click on the Browse button to find the version 11.0.0.0 you just installed.

Navigate to the ReportViewer Runtime you just installed and select Microsoft.ReportViewer.WebForms.dll.

Now Report Viewer control has been added into Toolbox.

Source:
https://www.nuget.org/packages/Microsoft.ReportViewer/
http://stackoverflow.com/questions/6144513/how-can-i-use-a-reportviewer-control-in-an-asp-net-mvc-3-razor-view
http://blogs.msdn.com/b/sajoshi/archive/2010/06/16/asp-net-mvc-handling-ssrs-reports-with-reportviewer-part-ii-deployment-challenges.aspx
http://forums.asp.net/t/1963101.aspx?SSRS+Report+Viewer+in+MVC4
http://dotnetspeak.com/2012/02/using-ssrs-in-asp-net-mvc-application
http://stackoverflow.com/questions/6144513/how-can-i-use-a-reportviewer-control-in-an-asp-net-mvc-3-razor-view
http://stackoverflow.com/questions/15208437/how-can-i-use-a-reportviewer-control-with-razor
https://www.packtpub.com/books/content/mixing-aspnet-webforms-and-aspnet-mvc

https://msdn.microsoft.com/en-us/library/ms251661.aspx

http://www.vbforums.com/showthread.php?717175-How-to-use-Report-Viewer-with-Visual-Studio-2012-Express

http://www.codemag.com/article/1009061http://www.codemag.com/article/1011131

http://blogs.msdn.com/b/sajoshi/archive/2010/06/16/asp-net-mvc-handling-ssrs-reports-with-reportviewer-part-i.aspx

No comments:

Post a Comment