A newer version of this page is available. Switch to the current version.

QRCodeGenerator.CompactionMode Property

Gets or sets whether numeric, alpha-numeric or byte information should be used as the bar code's data.

Namespace: DevExpress.XtraPrinting.BarCode

Assembly: DevExpress.Printing.v19.2.Core.dll

Declaration

[DefaultValue(QRCodeCompactionMode.AlphaNumeric)]
public QRCodeCompactionMode CompactionMode { get; set; }

Property Value

Type Default Description
QRCodeCompactionMode

AlphaNumeric

A QRCodeCompactionMode enumeration value.

Available values:

Name Description
Numeric

Numeric data is encoded. Max. 7,089 characters.

AlphaNumeric

A combination of alphabetic and numeric characters is encoded. Max. 4,296 characters.

Byte

Binary data is encoded. Max. 2,953 bytes.

Remarks

The bar code encodes the value of the XRBarCode.Text and XRBarCode.BinaryData properties.

If the XRBarCode.Text property is not defined, the bar code encodes the XRBarCode.BinaryData property value.

See Also