Skip to main content
A newer version of this page is available. .

XRBarCode.BinaryData Property

Gets or sets the byte array to be coded into a bar code.

Namespace: DevExpress.XtraReports.UI

Assembly: DevExpress.XtraReports.v19.1.dll

NuGet Packages: DevExpress.Reporting.Core, DevExpress.WindowsDesktop.Core

Declaration

[SRCategory(ReportStringId.CatData)]
public byte[] BinaryData { get; set; }

Property Value

Type Description
Byte[]

An array of Byte values to be coded into a bar code.

Remarks

Use the BinaryData property to code a byte array into a bar code. The following bar code symbologies support encoding binary data.

By default, all bar code symbologies encode textual data, provided by a bar code’s XRBarCode.Text property. To encode binary data, set the CompactionMode of a symbology to Binary.

The following code snippet (auto-collected from DevExpress Examples) contains a reference to the BinaryData 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.

See Also