ReportModifyBehaviorProperties.FixLayoutErrors Property
Specifies whether the designer attempts to fix the report layout when report controls overlap.
Namespace: DevExpress.AIIntegration.WinForms.Reporting
Assembly: DevExpress.AIIntegration.WinForms.Reporting.v26.1.dll
NuGet Package: DevExpress.AIIntegration.WinForms.Reporting
Declaration
Property Value
| Type | Default | Description |
|---|---|---|
| Boolean | false |
|
Remarks
Use the following code to register a ReportModifyBehavior and attach it to the reportDesigner1 UI component created at design time from the Toolbox:
using DevExpress.AIIntegration.WinForms.Reporting;
public partial class Form1 : Form {
public Form1() {
InitializeComponent();
behaviorManager1.Attach<ReportModifyBehavior>(reportDesigner1, behavior => {
behavior.Properties.FixLayoutErrors = true;
behavior.Properties.Temperature = 0.5f;
behavior.Properties.RetryAttemptCount = 2;
});
}
}
The following code registers a ReportModifyBehavior and attaches it to the WinForms Report Designer control (XRDesignMdiController):
using DevExpress.XtraReports.UI;
using DevExpress.AIIntegration.WinForms.Reporting;
public partial class Form1 : Form {
public Form1() {
InitializeComponent();
// Create a new blank report instance or use your report.
XtraReport report = new XtraReport();
// Create a ReportDesignTool to configure and display the report in the Report Designer.
ReportDesignTool designTool = new ReportDesignTool(report);
// Attach AI-powered behavior to the Report Designer's MDI controller.
behaviorManager1.Attach<ReportModifyBehavior>(designTool.DesignRibbonForm.DesignMdiController, behavior => {
// Enable automatic layout error correction in the report.
behavior.Properties.FixLayoutErrors = true;
// Set the creativity level of AI suggestions (range: 0 = deterministic, 1 = creative).
behavior.Properties.Temperature = 0.5f;
// Define the number of retry attempts for AI operations in case of failure.
behavior.Properties.RetryAttemptCount = 2;
});
// Display the Report Designer with a ribbon UI.
designTool.ShowRibbonDesigner();
}
}
See Also