Modify Reports Using an AI Assistant in the Web Report Designer (CTP)
- 5 minutes to read
Follow instructions in this help topic to integrate AI-powered Modify Reports functionality into the Web Report Designer. This tutorial uses Azure OpenAI.
Important
The Modify Reports functionality is currently available as a community technology preview (CTP).
Once you integrate this functionality, open the AI Assistant tab and chat with the AI Assistant to modify your report layout:

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”)
For the list of supported AI services and their corresponding prerequisites, refer to the Supported AI Services section in the following help topic: 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.
- AddReportModificationAssistant()
Activates AI-powered Modify Reports functionality in the Web Report Designer.
Use the following methods to specify functionality options:
-
Specifies the maximum number of attempts to fix report layout errors in the LLM response. The default value is 3.
-
Specifies whether to automatically resolve report control overlapping.
-
Specifies output randomness. Lower temperatures yield more predictable and focused outputs, while higher temperatures produce more diverse and creative responses. The default value is 0.
-
Specifies additional instructions that modify the prompt before processing.
-
Specifies whether the AI Assistant searches DevExpress documentation to answer how-to questions about report design. Documentation lookup is the default behavior. Refer to the following section for additional information: Ask Questions About the Report Designer.
-
The following snippet registers an Azure OpenAI service and activates the AI-powered Modify Reports functionality 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.AddReportModificationAssistant();
});
});
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()
}
Modify Reports Using an AI Assistant
The Report Designer now displays the AI Assistant tab. Click the AI Assistant icon to open the corresponding tab and interact with the AI Assistant:

The AI Assistant tab allows you to add and modify report elements in natural language. For example, you can execute the following commands:
Add/remove report bands
Add a report header band.Add/remove report controls (labels, tables, barcodes, etc.)
Add a 3x3 table to the Detail band. Remove the following controls from the report layout: - label1 - pictureBox1Find report controls by name and modify associated properties (text, expression binding, background and foreground colors, etc.)
Set the xrTable1 table to full width. Set column widths as follows: - First column: 50% - Second column: 25% - Third column: 25% Set the background color of all cells in the first column to green.Modify report properties (margins, paper kind, etc.)
Modify report settings. Margins: - Left & Right: 60 - Top & Bottom: 40 Report Header: - Title: Sample Report - Font: Tahoma, 14pt, Bold - Alignment: CenterGroup, sort, and filter report data
Group the report by the "State" field. Create a label in the group header. Bind the label to the "State" field.
Note
The output quality depends on the details you specify in the natural language description. It is also influenced by the underlying language model — including its architecture, size, and training data. Different LLM implementations may yield varying results due to differences in model capabilities.
Ask Questions About the Report Designer
The AI Assistant answers how-to questions about report design: Report Designer capabilities, report controls and their settings, and common end-user tasks. You can ask questions such as:
- How do I create a calculated field?
- How do I display a carried-forward total at the bottom of each page?
The AI Assistant connects to the DevExpress Documentation MCP server, searches documentation, and reads relevant pages. Answers rely on up-to-date documentation rather than on the model’s own knowledge. The AI Assistant tailors its answers to the Web Report Designer UI.
To prevent the assistant from searching DevExpress documentation, pass false to the LookupDevExpressDocs method:
builder.Services.AddDevExpressAI(settings => {
settings.AddWebReportingAIIntegration(config => {
config.AddReportModificationAssistant(modification => {
modification.LookupDevExpressDocs(false);
});
});
});
The AI Assistant continues to process report modification requests if the documentation server is unavailable.