Skip to main content
All docs
V24.2

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:

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:

The AI Operations tab The AI-powered context menu actions
Web Document Viewer -- AI Operations Tab Web Document Viewer -- AI-powered Context Menu Actions

The AI Operations tab allows you to:

  • 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

Context menu actions allow 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