DataMatrixGS1Generator.CompactionMode Property
Specifies whether textual information or a byte array should be used as the bar code’s data, as well as its encoding.
Namespace: DevExpress.XtraPrinting.BarCode
Assembly: DevExpress.Printing.v24.2.Core.dll
Declaration
Property Value
Type | Description |
---|---|
DataMatrixCompactionMode | A DataMatrixCompactionMode enumeration value. |
Available values:
Name | Description |
---|---|
ASCII | Data is encoded into text using the ASCII standard, which uses 4 bits (for double digits), 8 bits (for ASCII 0-127 symbols), or 16 bits (for ASCII 128-255 symbols). |
C40 | Data is encoded into text using the C40 standard, which uses 5.33 bits (for upper register characters and digits) or 10.66 bits (for lower register and special characters) per symbol. |
Text | Data is encoded into text, which uses 5.33 bits (for upper register characters and digits) or 10.66 bits (for lower register and special characters) per symbol. |
X12 | Data is encoded into text using the X12 standard, which uses 5.33 bits (for upper register characters, digits and the three standard ANSI X12 terminator and separator characters) or 10.66 bits (for lower register and special characters) per symbol. |
Edifact | Data is encoded into text using the EDIFACT standard, which uses 6 bits per symbol. |
Binary | Data is encoded into a binary array, using 8 bits per symbol. |
Remarks
If the CompactionMode is set to Binary, the bar code’s data is obtained from the XRBarCode.BinaryData property.
Otherwise, the bar code’s data is obtained from the XRBarCode.Text property, and textual information is encoded using the ISO 8859-1 character set.
For more information, see GS1- Data Matrix.