Back to Devexpress

AIReportingConfigurationBuilder.AddTestDataSource() Method

xtrareports-devexpress-dot-aspnetcore-dot-reporting-dot-aireportingconfigurationbuilder-b2c06e9c.md

latest2.6 KB
Original Source

AIReportingConfigurationBuilder.AddTestDataSource() Method

Activates AI-generated Test Data functionality in the Web Report Designer.

Namespace : DevExpress.AspNetCore.Reporting

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

NuGet Package : DevExpress.AIIntegration.AspNetCore.Reporting

Declaration

csharp
public AIReportingConfigurationBuilder AddTestDataSource()
vb
Public Function AddTestDataSource As AIReportingConfigurationBuilder

Returns

TypeDescription
AIReportingConfigurationBuilder

A DevExpress.AspNetCore.Reporting.AIReportingConfigurationBuilder object that can be used to further configure the AI-powered functionality in Web Document Viewer and Web Report Designer.

|

Remarks

The following code activates the AI-generated Test Data functionality with default number of rows (10):

csharp
// ...
builder.Services.AddDevExpressAI(config => {
    config.AddWebReportingAIIntegration(options => {
        options.AddTestDataSource();
    });  
});

Click the Test Data button in the Report Designer Toolbar to preview report with AI-generated data:

The following image shows the report preview with a test data source:

The test data source contains 10 data rows. To change the number of rows, use the SetRowCount(Int32) method.

See Also

Preview Reports with AI-generated Test Data (Web Report Designer)

AIReportingConfigurationBuilder Class

AIReportingConfigurationBuilder Members

DevExpress.AspNetCore.Reporting Namespace