xtrareports-devexpress-dot-aspnetcore-dot-reporting-dot-aireportingconfigurationbuilder-b2c06e9c.md
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
public AIReportingConfigurationBuilder AddTestDataSource()
Public Function AddTestDataSource As AIReportingConfigurationBuilder
| Type | Description |
|---|---|
| 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.
|
The following code activates the AI-generated Test Data functionality with default number of rows (10):
// ...
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