CleverFool77 / Reporting_how-to-use-the-web-report-designer-in-javascript-with-angular-t566422

.NET, ASP.NET MVC, MVC Report

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

How to use the Web Report Designer in JavaScript with Angular

Upgrade the Project

Before you run the project, verify the DevExpress version. If necessary, upgrade it to the DevExpress version you're currently using. Make sure to use the same version of DevExpress components for both Front-end and Back-end applications.

Follow these steps to update the project:

Upgrade the server-side app

Use the DevExpress Project Converter to upgrade assembly references for the back-end project solution (CS\ServerSide.sln or VB\ServerSide.sln). You can open the project in Visual Studio and navigate to the Menu: Extensions -> DevExpress -> Project Converter. Select the required version and upgrade the project.

Upgrade the client-side app

Navigate to the package.json file in the JS\angular-report-designer folder and change all DevExpress script versions to the version you're using on the server side. For instance, if you're using v20.2.6, modify the package.json file as follows:

    {
        ...
        "devextreme": "20.2.6",
        "devexpress-richedit": "20.2.6",
        "@devexpress/analytics-core": "20.2.6",
        "devexpress-reporting-angular": "20.2.6"
        ...
    }

Open the JS\angular-report-designer folder in the console and run the command to download updated packages:

npm install

Implementation Details

This example consists of two parts: 

  • A server (back-end) ASP.NET MVC project that enables cross-domain requests (CORS) (Access-Control-Allow-Origin) and implements a custom web report storage.

  • An Angular front-end client application.

Run the Example

Perform the following steps to run this example:

  1. Open the back-end project solution (CS\ServerSide.sln or VB\ServerSide.sln) in Visual Studio and run the project.

  2. Navigate to the JS\angular-report-designer folder that is the client part's root folder.

  3. Open the console and run the following command:

    npm install

  4. Run the command to compile and start the client part:

    ng serve

  5. Open your browser at http://localhost:4200/ to see the result.

For a step-by-step tutorial, refer to the Report Designer Integration in Angular topic.

Troubleshooting

The following articles help troubleshoot and resolve issues that may occur in web reporting applications:

See also

About

.NET, ASP.NET MVC, MVC Report

License:Other


Languages

Language:C# 44.8%Language:Visual Basic .NET 36.7%Language:TypeScript 12.7%Language:JavaScript 2.8%Language:HTML 2.7%Language:ASP.NET 0.3%