Skip to main content
All docs
V24.2

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

AIReportingExtensions.AddWebReportingAIIntegration(AIWebSettings, Action<DxReportingWebAIOptions>) Method

Adds AI-powered functionality to the Web Document Viewer.

Namespace: DevExpress.AspNetCore.Reporting

Assembly: DevExpress.AIIntegration.AspNetCore.Reporting.v24.2.dll

NuGet Package: DevExpress.AIIntegration.AspNetCore.Reporting

#Declaration

[DXBrowsable(true)]
public static void AddWebReportingAIIntegration(
    this AIWebSettings aiWebSettings,
    Action<DxReportingWebAIOptions> configureOptions
)

#Parameters

Name Type Description
aiWebSettings AIWebSettings
configureOptions Action<DxReportingWebAIOptions>

An Action<T> delegate method that allows you to specify options for AI-powered functionality in the Document Viewer.

#Remarks

In the Program.cs file, call the AddDevExpressAI method to register an AI service.

To enable the DevExpress AI-powered extension for Web Document Viewer, call the AddWebReportingAIIntegration method. Use the DxReportingWebAIOptions object to specify options for the Summarize command:

cs
using Microsoft.Extensions.AI;
using System;

IChatClient asChatClient = new Azure.AI.OpenAI.AzureOpenAIClient(new Uri(AzureOpenAIEndpoint),
     new System.ClientModel.ApiKeyCredential(AzureOpenAIKey))
.AsChatClient("GPT4o");

builder.Services.AddSingleton(asChatClient);
builder.Services.AddDevExpressAI((config) => {
    config.AddWebReportingAIIntegration(options =>
        options.SummarizationMode = SummarizationMode.Abstractive);
});

On the client, in the OnInitializing event handler, set the AIServicesEnabled property to true and use AILanguages to specify languages for Summarize and Translate operations.

The AI Operations tab appears in the tab panel and AI-powered context menu items are available to users:

AI Operations tab AI-powered Quick Actions
Web Document Viewer -- AI Operations Tab Web Document Viewer -- AI-powered Context Menu Actions

The AI Operations tab allows you to do the following:

  • Select input text range for Summarize and Translate operations (Document, Selected Pages, or Selected Report Content)
  • Select a language for Summarize and Translate operations
  • Review and copy operation output

The Quick Actions menu allows you to summarize and translate selected report content. Operation output is displayed in the AI Operations tab.

You can now translate and summarize any report using AI-powered tools.

See Also