The JSViewer_MVC(Core) sample demonstrates the use of the GrapeCity ActiveReports JS Viewer with an ASP.NET Core back-end.
Note: To run this sample, you must have
Sample Location
Visual Basic.NET
<User Folder>\GrapeCity Samples\ActiveReports 13\Web\JSViewer_MVC(Core)\VB.NET
C#
<User Folder>\GrapeCity Samples\ActiveReports 13\Web\JSViewer_MVC(Core)\C#
Details
When you run the sample, the JS Viewer opens in your browser. The viewer provides links to reports to demonstrate GrapeCity ActiveReports JS Viewer with an ASP.NET Core back-end.
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
- InvoiceList.rdlx
- Invoice_Colored.rpx
- Project & ResourceAnalysis - Staff Performance Analysis.rdlx
- Statistical analysis scatter plot.rdlx
- User defined report columns.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.
- readme: This file contains the instructions on how to build and run the sample project.
- 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 do the following.
- In the index.html file, uncomment the line
<!--<base href="/JSViewer_MVC_Core/">-->
.
- Copy the sample ViewerApp folder to the publish folder.
See Also