Giter Club home page Giter Club logo

reporting_how-to-use-the-web-report-designer-in-javascript-with-angular-t566422's Introduction

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

reporting_how-to-use-the-web-report-designer-in-javascript-with-angular-t566422's People

Contributors

annagubareva avatar briandx avatar devexpressexamplebot avatar kochkin avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.