Skip to main content
A newer version of this page is available. .

ReportDesignTool Class

An instrument for editing reports in WinForms applications.

Namespace: DevExpress.XtraReports.UI

Assembly: DevExpress.XtraReports.v18.2.Extensions.dll

Declaration

public class ReportDesignTool :
    IReportDesignTool,
    IDisposable

Remarks

Use the ReportDesignTool class, to show an XtraReport in a standard or ribbon-based End-User Report Designer form.

To be able to use this class, make sure to add the DevExpress.XtraReports.v18.2.Extensions.dll to the References list of your project.

Note

This class is supposed to be used only in WinForms applications.

To customize reports in a WPF application, use the Report Designer control.

To customize reports in an ASP.NET application, use the Report Designer control.

To learn more, see Invoke a Default End-User Report Designer Form.

Example

This example demonstrates how to use the ReportDesignTool class, to load a report into an End-User Report Designer form.

Then, to access the properties of the report and the Designer form, use the ReportDesignTool.Report and ReportDesignTool.DesignForm properties.

using System;
using System.Windows.Forms;
using DevExpress.XtraReports.UI;
using DevExpress.XtraReports.UserDesigner;
// ...

private void button1_Click(object sender, EventArgs e) {
    // Create a Design Tool instance with a report assigned to it.
    ReportDesignTool dt = new ReportDesignTool(new XtraReport1());

    // Access the report's properties.
    dt.Report.DrawGrid = false;

    // Access the Designer form's properties.
    dt.DesignForm.SetWindowVisibility(DesignDockPanelType.FieldList | 
        DesignDockPanelType.PropertyGrid, false);

    // Show the Designer form, modally.
    dt.ShowDesignerDialog();
}

Inheritance

See Also