Fix Report Design Issues with AI in the WinForms Report Designer
- 5 minutes to read
This help topic describes how to configure the Report Design Analyzer to provide AI-assisted suggestions for resolving design issues. Suggested fixes are based on relevant report context, such as report elements and their property values.
The AI Assistant displays proposed changes for review. For some issues, the assistant can apply the fix after the user confirms it. For other issues, it suggests a solution that the user must implement manually.
Install NuGet Packages
Install the following NuGet packages:
DevExpress.AIIntegration.WinForms.ReportingDevExpress.Win.Design(activates design-time features for DevExpress WinForms UI controls in .NET projects)- Microsoft.Extensions.AI.OpenAI (Version=”10.5.1”)
Azure.AI.OpenAI (Version=”2.3.0-beta.2”)
This help topic uses Azure OpenAI. See the following help topic for information about supported AI services and required NuGet packages: AI-powered Extensions.
See the following help topic for information on how to install DevExpress NuGet packages: Install DevExpress Products.
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 Your AI Client
The following code snippet registers an Azure OpenAI client at application startup:
using Azure.AI.OpenAI;
using DevExpress.AIIntegration;
using Microsoft.Extensions.AI;
using System.ClientModel;
internal static class Program {
static string AzureOpenAIEndpoint { get { return "AZURE_OPENAI_ENDPOINT"; } }
static string AzureOpenAIKey { get { return "AZURE_OPENAI_APIKEY"; } }
static string DeploymentName { get { return "MODEL_NAME"; } } // For example, gpt-5.2.
[STAThread]
static void Main(){
IChatClient client = new AzureOpenAIClient(
new Uri(AzureOpenAIEndpoint),
new ApiKeyCredential(AzureOpenAIKey))
.GetChatClient(DeploymentName).AsIChatClient();
AIExtensionsContainerDesktop.Default.RegisterChatClient(client);
ApplicationConfiguration.Initialize();
Application.Run(new Form1());
}
}
Create and Configure an AI Assistant Behavior
- Drop the BehaviorManager component from the Toolbox onto a Form that contains the WinForms Report Designer.
Invoke the
BehaviorManager‘s smart tag menu and click Edit Behaviors to open the Behavior Collection Editor.Note
In .NET Framework projects, click Register AI-powered Behaviors in the
BehaviorManager‘s smart tag menu to add DevExpress AI-powered behaviors to theBehaviorManager.- Add a
Report Design Troubleshooter Behavior.
Create and Configure an AI Assistant Behavior in Code
Attach the ReportDesignTroubleshooterBehavior to the Report Designer.
using DevExpress.AIIntegration.WinForms.Reporting;
// ...
public partial class Form1 : Form{
public Form1(){
InitializeComponent();
behaviorManager1.Attach<ReportDesignTroubleshooterBehavior>(reportDesigner1, behavior => {
});
}
}
Analyze and Fix Issues
You can run the issue analysis in the following ways:
Use the Fix Issues with AI icon in the Report Design Analyzer to analyze an individual issue. This icon appears only for issues that can be analyzed with AI.

Use the smart tag on a report, band, or control to analyze issues related to that specific report element:

While the LLM analyzes the issue, a wait screen is displayed. You can click Cancel to stop the analysis.

When the analysis is complete, the Review Changes and Suggestions dialog appears:

The dialog contains two categories of results:
- Changes
- Proposed modifications that can be applied to the report automatically. Changes are grouped by category (Layout, Data Binding, Barcode, Summary, and Other). Each change lists the affected report element, the issue description, the proposed fix, relevant property values, and a label that 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.
You can switch between two categories or display both using the filter drop-down:

Use Search to filter the results by text.
Click Apply to update the report with the selected changes. Click Cancel to close the dialog without applying the 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.