Back to Devexpress

DesignerOptions.ShowPrintingWarnings Property

xtrareports-devexpress-dot-xtrareports-dot-ui-dot-designeroptions-c54d993c.md

latest3.0 KB
Original Source

DesignerOptions.ShowPrintingWarnings Property

Specifies whether to highlight report controls that extend beyond the right page margin.

Namespace : DevExpress.XtraReports.UI

Assembly : DevExpress.XtraReports.v25.2.dll

NuGet Package : DevExpress.Reporting.Core

Declaration

csharp
[DefaultValue(true)]
[SRCategory(ReportStringId.CatDesign)]
public bool ShowPrintingWarnings { get; set; }
vb
<DefaultValue(True)>
<SRCategory(ReportStringId.CatDesign)>
Public Property ShowPrintingWarnings As Boolean

Property Value

TypeDefaultDescription
Booleantrue

true , to display print warnings; otherwise, false.

|

Property Paths

You can access this nested property as listed below:

Object TypePath to ShowPrintingWarnings
XtraReport

.DesignerOptions .ShowPrintingWarnings

|

Remarks

To highlight report controls that extend beyond the right margin of the page, enable the ShowPrintingWarnings property. Hover over the report design area to display a tooltip with control names. You can resize these controls to keep them within the page borders and avoid printing unnecessary pages.

For more information, review the following help topic: Validate the Report Layout.

Note

The DesignerOptions settings are not available in Report Designer for Web.

The following code snippet hides tooltips that warn a user about controls that extend beyond the field boundaries, and disables red highlighting for such controls:

csharp
public partial class TestReport : DevExpress.XtraReports.UI.XtraReport {
    public TestReport() {
        InitializeComponent();
        this.DesignerOptions.ShowPrintingWarnings = false;
    }
}
vb
Public Class TestReport

    Public Sub New()
        Me.DesignerOptions.ShowPrintingWarnings = False
    End Sub
End Class

See Also

ShowExportWarnings

DesignerOptions Class

DesignerOptions Members

DevExpress.XtraReports.UI Namespace