The JSViewer_Angular(Core) sample demonstrates the use of the GrapeCity ActiveReports JS Viewer with an Angular 7 app and 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_Angular(Core)\VB.NET
C#
<User Folder>\GrapeCity Samples\ActiveReports 13\Web\JSViewer_Angular(Core)\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 Angular 7 app and 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
- Statistical analysis scatter plot.rdlx - Staff Performance Analysis.rdlx
- User defined report columns.rdlx
The project consists of the following elements.
- ClientApp folder: This folder contains a standard Angular CLI app that is used for all UI concerns.
- Controllers folder: This folder contains the ReportsController files. The ReportsController handles the interaction with reports when a report is selected in the left panel.
- appsettings.json: The json configuration file.
- readme: This file contains the instructions on how to 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 JSViewer_Angular(Core).csproj file, set the PublishToIIS property to true as follows:
<PublishToIIS>true</PublishToIIS>
.
- Copy the sample ViewerApp folder to the publish folder.
See Also