Optimize Report Design Using AI in the Visual Studio Report Designer
- 5 minutes to read
This help topic describes how to use an AI assistant to optimize report design. The assistant can analyze report elements and their property values, and can suggest changes that clean up report structure and formatting.
The AI Assistant does not change report content, data bindings, or layout. The assistant displays all proposed changes for review and updates the report only after you select the changes to apply.
To fix report design issues with AI, refer to the following help topic: Fix Report Design Issues Using AI in Visual Studio Designer.
DevExpress AI Assistant for Visual Studio
The DevExpress Unified Component Installer installs the AI-powered Assistant for Visual Studio extension.

Note
The default AI Assistant endpoint is a DevExpress demo endpoint. This endpoint has a rate limit and serves for evaluation purposes only. To avoid limitations, configure the extension to use your own AI service. See the following section.
Configure AI Services
Go to Tools → Options → DevExpress → AI Assistant to open AI Assistant options.

| Option | Description |
|---|---|
Endpoint URL |
The service endpoint used to connect to Azure OpenAI. For OpenAI connections, this option must be empty. |
API Key |
A personal access key required to authenticate requests to AI service. |
Model Name |
The identifier of the AI model (for example, gpt-5-mini). |
Enable Logging |
If enabled, the extension records request and response details for diagnostic purposes. Logs are stored in the following folder: C:\Documents and Settings\<UserName>\AppData\Local\DevExpress\AI_Assistant_VSIX |
Enable Prompt Caching |
If enabled, previously used prompts and responses are cached to improve performance and reduce repeated requests. |
Warning
There are OpenAI models (for example, GPT-5, o1, and o3 series) that do not support the Temperature parameter. To avoid runtime exceptions when targeting these models, set the Temperature to 1. The value is ignored by the service, but this setting prevents validation/compatibility errors.
Available Optimizations
The AI Assistant can optimize a report in the following ways:
- Convert adjacent controls to tables
- Converts three or more labels located in the same band into a single table. If label vertical positions (Y coordinates) differ, the AI Assistant aligns the labels before the conversion. Tables maintain a consistent report layout and improve XLS/XLSX/CSV export quality, compared to loosely positioned labels.
- Use type-based text alignment in table columns
- Corrects text alignment in labels and table cells bound to data fields. The AI Assistant determines alignment based on the field’s data type and name. For example, the assistant aligns numeric values to the right. Elements that already have correct alignment remain unchanged.
- Clean up report control formatting
- Finds two or more controls with identical appearance settings, creates a single report style from these settings, and assigns the style to the controls. Controls with distinct appearance settings remain unchanged. This optimization reduces report definition size and makes the report easier to maintain.
Optimize a Report
Click the report’s smart tag and expand the AI Assistant section. Use one of the following commands:
- Optimize with AI
- Runs all available optimizations.
- Convert adjacent controls to tables, Use type-based text alignment in table columns, Clean up report control formatting
- Runs the corresponding optimization only.

While the LLM analyzes the report, the AI Assistant displays a wait screen. You can click Cancel to stop the analysis.
When the analysis is complete, the Review Changes dialog appears. The AI Assistant does not modify the report until you select changes in this dialog.

The dialog groups changes by optimization type. Group names match the AI Assistant commands in the smart tag. Each change lists the affected report element, the change description, relevant property values (old and new), and a label that indicates the change type (Modify, Add, or Remove). Use check boxes to select all or individual changes.
Some changes depend on each other, and the AI Assistant applies them together:
- A label-to-table conversion is a single change that removes the labels and adds the table. You cannot apply only a part of this change.
- If a data alignment correction relies on a style that another change creates, the alignment change requires the style change. When you clear the style change, the dialog automatically clears the dependent alignment change. This behavior prevents a control from referencing a style that does not exist.
Use Search to filter changes by text.
Click Apply to update the report with the selected changes. Click Cancel to close the dialog without applying any changes.
Troubleshooting
AI Assistant Smart Tag Is Not Displayed
- Possible Cause
- The DevExpress AI-powered Assistant for Visual Studio extension is disabled.
- Solution
- Open the Extension Manager in Visual Studio (Extensions → Manage Extensions…). Switch to the Installed tab and enable the DevExpress AI-powered Assistant for Visual Studio extension. Restart Visual Studio.
HTTP 404 (Deployment Not Found)
- Possible Cause
- The specified model deployment does not exist. This error may occur if the deployment name is incorrect, if you recently created the deployment and it is not active yet, or if someone deleted the deployment.
- Solution
- Open AI Assistant Options and check the
Model Namesetting.