Skip to main content
All docs
V25.1

DevExpress v25.1 Update — Your Feedback Matters

Our What's New in v25.1 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

ReportPromptToReportBehavior Class

An AI-powered Prompt-to-Report functionality that uses natural language processing to build reports based on text descriptions.

Namespace: DevExpress.AIIntegration.WinForms.Reporting

Assembly: DevExpress.AIIntegration.WinForms.Reporting.v25.1.dll

NuGet Package: DevExpress.AIIntegration.WinForms.Reporting

#Declaration

public class ReportPromptToReportBehavior :
    ReportDesignerBehaviorBase

#Remarks

The following code registers ReportPromptToReportBehavior and attaches it to the WinForms Report Designer control:

using DevExpress.AIIntegration.WinForms.Reporting;
// ...
public partial class Form1 : Form {
    public Form1() {
        InitializeComponent();
        behaviorManager1.Attach<ReportPromptToReportBehavior>(reportDesigner1, behavior => {
          // Specify behavior settings.
        });
    }
}

Use ReportPromptToReportBehavior.Properties to access the behavior’s settings. The following settings are available:

ReportPromptToReportBehaviorProperties.FixLayoutErrors
Specifies whether to automatically resolve report control overlapping.
ReportPromptToReportBehaviorProperties.PredefinedPrompts
Specifies predefined prompts that can be used to create a report in the Report Wizard.
ReportPromptToReportBehaviorProperties.RetryAttemptCount
Specifies the number of attempts to fix report layout errors that may appear in the LLM response.
ReportPromptToReportBehaviorProperties.Temperature
Controls output randomness. Lower temperatures (values between 0f and 0.5f) yield more predictable and focused outputs, while higher temperatures (values between 0.5f and 1f) produce more diverse and creative responses. The default value is 0f.

Review the following help topic for more information on how to use this functionality in the WinForms Report Designer: Prompt to Report Behavior in the WinForms Report Designer (CTP).

#Inheritance

Object
DevExpress.Utils.MVVM.BehaviorBase
DevExpress.Utils.Behaviors.Behavior
DevExpress.Utils.Behaviors.Behavior<DevExpress.AIIntegration.WinForms.Reporting.Internal.IReportDesignerBehaviorSource>
DevExpress.AIIntegration.WinForms.Reporting.Internal.ReportDesignerBehaviorBase
ReportPromptToReportBehavior
See Also