.NET Framework 4.5.2+
.NET Framework 4.5.2+
.NET Standard 2.0+

WorkbookPrintOptions.ShowMarginsWarning Property

Gets or sets whether to show an error message when page margins are set outside the printable area.

Namespace: DevExpress.XtraSpreadsheet

Assembly: DevExpress.Spreadsheet.v21.1.Core.dll

Declaration

[DefaultValue(true)]
[XtraSerializableProperty]
public bool ShowMarginsWarning { get; set; }

Property Value

Type Description
Boolean

true, to show the margins warning dialog; otherwise false.

Property Paths

You can access this nested property as listed below:

Library Object Type Path to ShowMarginsWarning
WinForms Controls SpreadsheetControlOptions
.Print.ShowMarginsWarning
Office File API DocumentOptions
.Print.ShowMarginsWarning
WorkbookOptions
.Print.ShowMarginsWarning

Remarks

Set the ShowMarginsWarning property to false to suppress the following dialog:

SpreadsheetControl_ MarginsWarningDialog

See Also