Back to Devexpress

XRBarCode.Validate() Method

xtrareports-devexpress-dot-xtrareports-dot-ui-dot-xrbarcode-1e333d86.md

latest1.9 KB
Original Source

XRBarCode.Validate() Method

Indicates whether or not the bar code is correctly rendered.

Namespace : DevExpress.XtraReports.UI

Assembly : DevExpress.XtraReports.v25.2.dll

NuGet Package : DevExpress.Reporting.Core

Declaration

csharp
public BarCodeError Validate()
vb
Public Function Validate As BarCodeError

Returns

TypeDescription
BarCodeError

A BarCodeError enumeration value, identifying the error (BarCodeError.None if the bar code validation succeeds).

|

Remarks

Call the Validate method after specifying bar code settings (e.g., in the XRControl.BeforePrint event handler) to make sure that the resulting bar code will be properly rendered in a document.

When validation fails (indicating that the bar code is not rendered), the control displays an error message corresponding to one of the PreviewStringId enumeration values.

To learn about possible errors and the corresponding text displayed in a control, see the BarCodeError enumeration.

See Also

XRBarCode Class

XRBarCode Members

DevExpress.XtraReports.UI Namespace