Giter Site home page Giter Site logo

franks1 / reporting-web-report-designer-angular-dxt-template Goto Github PK

View Code? Open in Web Editor NEW

This project forked from devexpress-examples/reporting-angular-integrate-report-designer

0.0 0.0 0.0 2.39 MB

Sample project with the Web Report Designer created from the DevExtreme Angular template.

License: Other

JavaScript 74.35% C# 4.26% TypeScript 11.59% HTML 7.48% SCSS 2.32%

reporting-web-report-designer-angular-dxt-template's Introduction

How to Integrate Web Report Designer in Angular App

This project consists of an Angular client (front-end) application and an ASP.NET Core server (back-end) application.

The ClientApp folder contains the Angular app created from the DevExtreme template as described in the following help topics:

The dx.material.orange.light theme is applied to the Report Designer component as described in the following help topic: Themes and Styles in Angular Application.

The ServerSideAspNetCoreReportingApp folder contains the ASP.NET Core server (back-end) application created as described in the following help topic: Report Designer Server-Side Configuration (ASP.NET Core). The application enables cross-domain requests (CORS) (Access-Control-Allow-Origin) and implements a custom web report storage.

The angular-report-designer contains the sample Angular application created by following the steps in the Client (Front-End) Application help topic section.

When you start the back-end application and run the Angular application in the ClientApp folder, it appears as follows:

Web Report Designer Angular App

How to Run the Project

To run the project, start the ServerSideAspNetCoreReportingApp application, install npm packages with npm install command in the ClientApp folder, and run the command ng serve.

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. 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 ClientApp folder and change all DevExpress script versions to the version you're using on the server side. If you're using v22.1.6, modify the package.json file as follows:

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

Open the ClientApp folder in the console and run the command to download updated packages:

npm install

Run the Example

Perform the following steps to run this example:

  1. Open the back-end project solution (ServerSideAspNetCoreReportingApp/ServerSideAspNetCoreReportingApp.sln) in Visual Studio and run the project.

  2. Navigate to the ClientApp 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.

Troubleshooting

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

Files to Review

Client App

Server App

More Examples

reporting-web-report-designer-angular-dxt-template's People

Contributors

andreylepikhov avatar annagubareva avatar briandx avatar devexpressexamplebot avatar kochkin 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.