xtrareports-401542-web-reporting-vue-reporting-report-designer-report-designer-integration-in-vue.md
The Web Report Designer is used in applications that contain client and server parts:
ClientA Web Report Designer integrated in a client Vue application displays a report provided by the server-side model.ServerThe server is an ASP.NET Core application that handles client data requests and provides access to data sources, report storage, and other back-end capabilities.
This tutorial creates and configures a client React application and a server ASP.NET Core backend. The client contains the Web Report Designer control.
Note the following details about package versions:
You can use DevExpress CLI Templates to create an ASP.NET Core back-end application. Begin with the steps below:
Install DevExpress ASP.NET Core project templates from nuget.org:
Create a back-end Reporting application:
Enable cross-origin requests (CORS). Specify the policy that allows any local application to access the report’s back-end. Use the SetIsOriginAllowed method to set it up.
To run the server-side application, run the following command:
To create a back-end application from a Microsoft or DevExpress Template in Visual Studio, review the following help topics:
Create a Vue application with a default preset
Navigate to the project folder and install DevExpress npm packages:
Create the src/App.vue file with the following content:
Add styles to the src/main.js file:
Remove default project styles to avoid conflicts. To do this, remove the ./assets/main.css import in the main.js file.
Run the server application.
Run the client application:
Open your browser and navigate to the URL specified in the command output to see the result.
When you start the application, you may encounter the following issues:
The Report Designer page is blank. The following error message is displayed at the bottom of the page: The page is blank because the Report Designer failed to load the report. Consult the developer for assistance. Use development mode for detailed information.
Check the following:
/DXXRD/GetDesignerModel path; if you use the ASP.NET MVC backend, specify the /ReportDesigner/GetReportDesignerModel path.host setting of the Report Designer component.reportUrl value matches an existing report. For the back-end application, ensure that either the Reports folder contains a reportUrl.repx file or the ReportsFactory.Reports dictionary contains the reportUrl entry (if the back-end application originated from the DevExpress template).Refer to the following help topic for more information: Troubleshooting.