Fix Report Design Issues with AI in the Web Report Designer
- 4 minutes to read
Follow instructions in this help topic to integrate AI-powered analysis of report design issues into the Web Report Designer. This tutorial uses Azure OpenAI.
Once you integrate this functionality, users can run AI-powered analysis of the issues that the Report Design Analyzer detects. When the analysis is complete, users can apply suggested automatic fixes and review recommendations for manual changes. Suggested fixes use relevant report context, such as report elements and their property values.

Note
This functionality is not supported in the Web Report Designer control for ASP.NET MVC and ASP.NET Web Forms.
Install NuGet Packages
Install the following NuGet packages to use Azure OpenAI:
- DevExpress.AIIntegration.AspNetCore.Reporting
- Microsoft.Extensions.AI (Version=”10.5.1”)
- Microsoft.Extensions.AI.OpenAI (Version=”10.5.1”)
- Azure.AI.OpenAI (Version=”2.3.0-beta.2”)
Refer to the Supported AI Services section in the following help topic for a list of supported AI services and associated prerequisites: AI-powered Extensions for DevExpress Reporting.
Note
DevExpress AI-powered extensions follow the “bring your own key” principle. DevExpress does not offer a REST API and does not ship any built-in LLMs/SLMs. You need an active Azure/Open AI subscription to obtain the REST API endpoint, key, and model deployment name. These variables must be specified at application startup to register AI clients and enable DevExpress AI-powered Extensions in your application.
Register an AI Service and Activate the Extension
Call the following methods at application startup:
- AddDevExpressAI
- Adds DevExpress AI-related services to the application service collection.
- AddWebReportingAIIntegration
- Adds AI-powered functionality to the Web Document Viewer and Web Report Designer.
- AddReportDesignTroubleshooter()
- Activates AI-powered functionality that analyzes report design issues and suggests or applies fixes in the Web Report Designer.
The following snippet registers an Azure OpenAI service and activates AI-powered functionality that analyzes report design issues and suggests or applies fixes in the Web Report Designer:
using Azure.AI.OpenAI;
using Microsoft.Extensions.AI;
using System;
// ...
builder.Services.AddDevExpressControls();
// ...
string azureOpenAIEndpoint = Environment.GetEnvironmentVariable("AZURE_OPENAI_ENDPOINT");
string azureOpenAIKey = Environment.GetEnvironmentVariable("AZURE_OPENAI_API_KEY");
string deploymentName = "MODEL_NAME";
IChatClient chatClient = new AzureOpenAIClient(new Uri(azureOpenAIEndpoint),
new System.ClientModel.ApiKeyCredential(azureOpenAIKey))
.GetChatClient(deploymentName).AsIChatClient();
builder.Services.AddSingleton(chatClient);
builder.Services.AddDevExpressAI(config => {
config.AddWebReportingAIIntegration(aiConfig => {
aiConfig.AddReportDesignTroubleshooter();
});
});
Disable AI-powered Functionality for a Specific Control
AI-powered functionality configured within AIReportingConfigurationBuilder is available for all Report Viewer and Report Designer components in the application. If you need to disable this AI-powered functionality for a specific Web Report Designer control, set the client AIServicesEnabled property to false in the BeforeRender event handler. The following snippet disables AI-powered functionality for a Report Designer in an ASP.NET Core application:
<script type="text/javascript">
function onBeforeRender(e, s) {
DevExpress.Reporting.Designer.Settings.AIServicesEnabled(false);
}
</script>
@{
var designerRender = Html.DevExpress().ReportDesigner("reportDesigner")
.Height("100%")
.ClientSideEvents(configure => configure.BeforeRender("onBeforeRender"))
.Bind(Model);
@designerRender.RenderHtml()
}
Analyze and Fix Issues
Use one of the following commands to analyze issues that the Report Design Analyzer detects:
Click the AI button on a report, band, or control and select Fix Issues with AI to analyze issues related to that report element:

Click Fix Issues with AI in the Report Design Analyzer to analyze an individual issue:

The analysis covers only the issues listed in the following section: Issues Available for AI Analysis.
The Fix Issues with AI command in the AI button menu is always available, even if the report contains no issues. If the analysis finds no issues, the Analysis Results dialog appears. Click OK to close the dialog.

If analysis does find issues, the Review Changes and Suggestions dialog appears:

The dialog contains two result categories:
- Changes
- Proposed modifications that the Report Designer can apply to the report automatically. Changes are grouped by category (Layout, Data Binding, Barcode, Summary, and Other). Each change lists the affected report element, issue description, proposed fix, and relevant property values. A label indicates the change type (Modify, Add, or Remove). Use checkboxes to select all or individual changes.
- Suggestions
- Recommendations that require manual review or manual changes to the report.
Use the filter drop-down list to switch between the two categories or display both.
Use Search to filter the results by text.
Click Apply to update the report. Click Cancel to close the dialog without applying selected changes.
Issues Available for AI Analysis
AI-powered analysis is available for the following Report Design Analyzer issues:
- XRE002
- The control is outside the right page margin.
- XRE003
- The control is outside of the report’s printing area.
- XRE004
- The control is overlapped.
- XRE015
- The text format string is invalid.
- XRE022
- The property’s binding is invalid.
- XRE023
- The property’s expression is invalid.
- XRE024
- The data member is invalid.
- XRE026
- The filter string is invalid.
- XRE050
- The barcode text contains invalid characters.
- XRE051
- The barcode text format is not valid.
- XRE053
- The barcode bounds are too small.
- XRE070
- The line’s width exceeds its bounds.
- XRE080
- The cross tab field is invalid.
- XRE090
- No region is specified for the summary.
- XRE230
- Some elements of your document overlap and thus can be exported to Excel format incorrectly.