xtrareports-devexpress-dot-aiintegration-dot-winforms-dot-reporting-173278b9.md
Contains ReportTestDataSourceBehavior settings.
Namespace : DevExpress.AIIntegration.WinForms.Reporting
Assembly : DevExpress.AIIntegration.WinForms.Reporting.v25.2.dll
NuGet Package : DevExpress.AIIntegration.WinForms.Reporting
public class ReportTestDataSourceProperties :
BehaviorProperties
Public Class ReportTestDataSourceProperties
Inherits BehaviorProperties
The following members return ReportTestDataSourceProperties objects:
Drop the BehaviorManager component from the Toolbox onto a Form that contains the WinForms Report Designer control. Use the following code to register a ReportTestDataSourceBehavior and attach it to the WinForms Report Designer (reportDesigner1):
using DevExpress.AIIntegration.WinForms.Reporting;
namespace DXAppReportsTestData {
public partial class XtraForm1 : DevExpress.XtraBars.Ribbon.RibbonForm {
public XtraForm2() {
InitializeComponent();
behaviorManager1.Attach<ReportTestDataSourceBehavior>(reportDesigner1, behavior => {
behavior.Properties.Temperature = 0.3f;
behavior.Properties.RowCount = 10;
});
reportDesigner1.OpenReport(new Report1());
}
}
}
Imports DevExpress.AIIntegration.WinForms.Reporting
Namespace DXAppReportsTestData
Partial Public Class XtraForm1
Inherits DevExpress.XtraBars.Ribbon.RibbonForm
Public Sub New()
InitializeComponent()
behaviorManager1.Attach(Of ReportTestDataSourceBehavior)(reportDesigner1,
Sub(behavior)
behavior.Properties.Temperature = 0.3F
behavior.Properties.RowCount = 10
End Sub)
reportDesigner1.OpenReport(New Report1())
End Sub
End Class
End Namespace
See the following help topic for more information: Preview Reports with AI-generated Test Data (WinForms Report Designer).
Object DevExpress.Utils.Base.BaseObject DevExpress.Utils.Base.BaseProperties DevExpress.Utils.Behaviors.BehaviorProperties ReportTestDataSourceProperties
See Also