This section explains you how to create an ASP.NET MVC Classic version of ReportViewer component in MVC application. In the following example, you can learn how to load rdl/rdlc specification reports in ReportViewer component.
Figure 1: Project Creation Wizard
Figure 2: Project Template Wizard
You can add the following Syncfusion assembly references for ReportViewer.
Figure 3: Adding Reference
Note: As MVC4 version sample for this tutorial is created, you have to add Syncfusion MVC4 version dlls. Syncfusion has a standard for assembly version number of MVC. For example Syncfusion assembly version is 12.3400.36, the number “4” in the second part. “3400” represents MVC version number. You can obtain Syncfusion MVC assemblies from its installed location C:\Program Files (x86)\Syncfusion\Essential Studio\188.8.131.52\Assemblies.
You can add report files to your application’s App_Data folder.
Figure 4: Add Report
Note: You can obtain sample rdl/rdlc files from Syncfusion installed location (%userprofile%\AppData\Local\Syncfusion\EssentialStudio\X.X.X.X\Common\Data\ReportTemplate). “X.X.X.X” is the Essential Studio Release Version.
Figure 5: Add New Item Wizard
Figure 6: Adding Controller
Figure 7: Add View Menu
Figure 8: Add View Wizard
Note: x.x.x.x in the above code example refers to the current version of the Essential Studio running in your system.
Run the Application
Run the sample application and you can see the ReportViewer on the page as displayed in the following screenshot.
Figure 9: ReportViewer with Parameter Report
You can download the demo sample from the following link.
You can find documentation and online demo samples for ASP.NET MVC Classic ReportViewer control from the following links.
Newer ASP.NET MVC version of ReportViewer
|Article ID:||Published Date:||Last Revised Date:||Platform:||Control:||.NET Framework:|
|2670||11/14/2014||11/14/2014||ASP.NET MVC (Classic)||ReportViewer||4|
or the page will be automatically redirected to sign-in page in 10 seconds.