Back to Devexpress

XtraReportDesignerExtensions Class

xtrareports-devexpress-dot-xtrareports-dot-ui-92397d2d.md

latest4.0 KB
Original Source

XtraReportDesignerExtensions Class

Provides extension methods that enable you to load a report in an End-User WinForms Report Designer.

Namespace : DevExpress.XtraReports.UI

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

NuGet Package : DevExpress.Win.Reporting

Declaration

csharp
public static class XtraReportDesignerExtensions
vb
Public Module XtraReportDesignerExtensions

Remarks

Use the XtraReportDesignerExtensions class’s methods to load a report into one of the default End-User Report Designer forms.

To be able to use these methods, you should add the DevExpress.XtraReports.v25.2.Extensions.dll to your project’s References list.

Note

You cannot use the XtraReportDesignerExtensions class methods in Web applications. Use the Web Report Desinger instead.

The following example demonstrates how to invoke the ribbon-based Report Designer with the default look and feel settings and without the Properties window and Report Explorer panels.

csharp
using DevExpress.XtraReports.UI;
using DevExpress.LookAndFeel;
using DevExpress.XtraReports.UserDesigner;
// ...

XtraReport1 report = new XtraReport1();
report.ShowRibbonDesignerDialog(UserLookAndFeel.Default, DesignDockPanelType.PropertyGrid 
    |DesignDockPanelType.ReportExplorer);
vb
Imports DevExpress.XtraReports.UI
Imports DevExpress.LookAndFeel
Imports DevExpress.XtraReports.UserDesigner
' ...

Dim report As XtraReport1 = New XtraReport1
report.ShowRibbonDesignerDialog(UserLookAndFeel.Default, (DesignDockPanelType.PropertyGrid 
    Or DesignDockPanelType.ReportExplorer))

We recommend you use the ReportDesignTool class instead, which provides the same methods to show Report Designer forms, but additionally allows you to customize them. This class also enables you to release the memory right after showing these forms (for instance, by calling the Dispose method or utilizing the using statement).

Inheritance

Object XtraReportDesignerExtensions

See Also

XtraReportDesignerExtensions Members

XtraReportPreviewExtensions

DevExpress.XtraReports.UI Namespace