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

DxReportingWebAIOptions Class

Specifies options for AI-powered functionality available in the Web Document Viewer.

Namespace: DevExpress.AIIntegration.Web.Reporting.Common.WebDocumentViewer

Assembly: DevExpress.AIIntegration.Web.Reporting.Common.v24.2.dll

NuGet Package: DevExpress.AIIntegration.Web.Reporting.Common

#Declaration

public class DxReportingWebAIOptions

#Remarks

To enable the DevExpress AI-powered extension for the 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);
});

For more information on how to enable AI-powered functionality in the Web Document Viewer, refer to the following topic: Summarize and Translate Reports in the Web Document Viewer.

#Inheritance

Object
DxReportingWebAIOptions
See Also