corelibraries-devexpress-dot-xtraprinting-dot-printingsystembase-dab2d778.md
Gets or sets a value which specifies whether an error message is shown when the page margins are set outside the printable area.
Namespace : DevExpress.XtraPrinting
Assembly : DevExpress.Printing.v25.2.Core.dll
NuGet Package : DevExpress.Printing.Core
[DefaultValue(true)]
public bool ShowMarginsWarning { get; set; }
<DefaultValue(True)>
Public Property ShowMarginsWarning As Boolean
| Type | Default | Description |
|---|---|---|
| Boolean | true |
true to show the margins warning dialog; otherwise false.
|
Use this property to enable the dialog showing the “One or more margins are set outside the printable area of the page” warning.
The following code snippet (auto-collected from DevExpress Examples) contains a reference to the ShowMarginsWarning property.
Note
The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.
word-document-api-use-printablecomponentlink-to-print-document/CS/PrintingSystem/Form1.cs#L58
// Disable warnings.
ps.ShowMarginsWarning = false;
ps.ShowPrintStatusDialog = false;
word-document-api-use-printablecomponentlink-to-print-document/VB/PrintingSystem/Form1.vb#L58
' Disable warnings.
ps.ShowMarginsWarning = False
ps.ShowPrintStatusDialog = False
See Also