Back to Devexpress

PrintingSystemBase.ShowMarginsWarning Property

corelibraries-devexpress-dot-xtraprinting-dot-printingsystembase-dab2d778.md

latest2.8 KB
Original Source

PrintingSystemBase.ShowMarginsWarning Property

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

Declaration

csharp
[DefaultValue(true)]
public bool ShowMarginsWarning { get; set; }
vb
<DefaultValue(True)>
Public Property ShowMarginsWarning As Boolean

Property Value

TypeDefaultDescription
Booleantrue

true to show the margins warning dialog; otherwise false.

|

Remarks

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

csharp
// Disable warnings.
ps.ShowMarginsWarning = false;
ps.ShowPrintStatusDialog = false;

word-document-api-use-printablecomponentlink-to-print-document/VB/PrintingSystem/Form1.vb#L58

vb
' Disable warnings.
ps.ShowMarginsWarning = False
ps.ShowPrintStatusDialog = False

See Also

PrintingSystemBase Class

PrintingSystemBase Members

DevExpress.XtraPrinting Namespace