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:
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.
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
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.
Perform the following steps to run this example:
-
Open the back-end project solution (CS\ServerSide.sln or VB\ServerSide.sln) in Visual Studio and run the project.
-
Navigate to the JS\angular-report-designer folder that is the client part's root folder.
-
Open the console and run the following command:
npm install
-
Run the command to compile and start the client part:
ng serve
-
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.
The following articles help troubleshoot and resolve issues that may occur in web reporting applications:
- How to use the Web Document Viewer in JavaScript with Angular example on GitHub