The requested page is not available for the requested platform. You are viewing the content for Default platform.

XRDesignMdiController.DefaultReportSettings Property

Provides access to the default report page settings.

Namespace: DevExpress.XtraReports.UserDesigner

Assembly: DevExpress.XtraReports.v19.1.Extensions.dll

Declaration

public ReportSettings DefaultReportSettings { get; }
Public ReadOnly Property DefaultReportSettings As ReportSettings

Property Value

Type Description
ReportSettings

Report page settings.

Remarks

The StandardReportDesigner and RibbonReportDesigner components use the following default settings to create new reports:

Use the DefaultReportSettings property to change the default report settings.

Change Default Report Settings at Design Time

When you drop a StandardReportDesigner or RibbonReportDesigner component to your form, a XRDesignMdiController item appears on your form called reportDesigner1.

ShowExportWarnings

Click reportDesigner1 and switch to the Properties window. Expand the DefaultReportSettings group.

ShowExportWarnings

Here you can change the default settings for report pages. Reports created in End-User Designer copy their report settings from the DefaultReportSettings object.

Change Default Report Settings at Runtime

The code sample below illustrates how to create an End-User Designer instance and specify default report page settings.

using DevExpress.XtraReports.UI;
using DevExpress.XtraReports.UserDesigner;

//...

            XRDesignForm form = new XRDesignForm();
            XRDesignMdiController reportDesigner = form.DesignMdiController;
            reportDesigner.DefaultReportSettings.PaperKind = System.Drawing.Printing.PaperKind.Letter;
            reportDesigner.DefaultReportSettings.Landscape = true;
            reportDesigner.DefaultReportSettings.ReportUnit = ReportUnit.HundredthsOfAnInch;
            reportDesigner.DefaultReportSettings.Margins = new System.Drawing.Printing.Margins(50, 50, 100, 100);
            form.ShowDialog();
See Also