The JSViewer_MVC sample demonstrates the use of the GrapeCity ActiveReports JS Viewer with an ASP.NET MVC 5 back-end.
Note: To run this sample, you must have:
Sample Location
Visual Basic.NET
<User Folder>\GrapeCity Samples\ActiveReports 13\Web\JSViewer_MVC\VB.NET
C#
<User Folder>\GrapeCity Samples\ActiveReports 13\Web\JSViewer_MVC\C#
Details
When you run the sample, the default page appears in your browser. This page provides links to reports that demonstrate the use of the GrapeCity ActiveReports JS Viewer with an ASP.NET MVC 5 backend.
Clicking the report link in the left panel opens the report for preview. You can preview the following reports.
- AnnualReport.rdlx
- Invoice.rdlx
- Invoice.rpx
- Invoice_Colored.rpx
- InvoiceList.rdlx
- Project & Resource Analysis - Staff Performance Analysis.rdlx
- User defined report columns.rdlx
- Statistical analysis scatter plot.rdlx
The project consists of the following elements.
-
- Controllers folder: This folder contains the HomeController that handles the user interaction and returns the main Index view.
- ViewerApp folder: Contains JS Viewer CSS and JavaScript files.
- Global.asax: The default class that sets global URL routing values for this web application.
- packages.config
- Startup.cs: This is the default startup file.
- Web.config: This configuration file contains the httpHandlers that allow ActiveReports to process reports on the Web. Note that you need to manually update version information here when you update your version of ActiveReports.
Before publishing the sample, you must copy the sample ViewerApp folder to the publish folder.
See Also