Type: String
Returns: see below.
Read only. Do not set this property.
For many reasons a developer may prefer to draw the bars to generate the barcode, rather than use the images returned by the dBarcode classes. All the dBarcode classes produce a Pattern String that may be used for this.
For 1D barcode types, this is a string containing a pattern of 0s and 1s, where 0 represents a space of minimum width and a 1 represents a bar of minimum width. The 1s may be used to indicate that a bar (filled rectangle) must be drawn.
For 2D barcode types, the choice of size for the drawn bars is a matter for the developer. However, some features of the drawn image should be considered in relation to the notes below for the different barcode types supported. In particular note that some stacked barcode types require separator lines to be drawn between each row. In general separator lines are drawn with the thickness of a single unit (the same as the thinnest bar in the symbol).
The pattern string returned for an Aztec barcode consists of the sequence of characters used to create the symbol, arranged by row, with a ‘1’ for a black square and a ‘0’ for a white square. Each row is separated by a newline (\n or CHR(10)) characters.
DataMatrix
The pattern string return for a DataMatrix barcode consists of the sequence of characters used to create the symbol, arranged by row, with a ‘1’ for a black square and a ‘0’ for a white square. Each row is separated by a newline (\n or CHR(10)) characters.
MaxiCode
Owing to the nature of MaxiCode, no pattern string is produced for this barcode type.
MicroPDF417
The pattern string returned for MicroPDF417 has the same properties as that for normal PDF417.
PDF417
The pattern strings returned for PDF417 barcodes consist of a stream of digit characters, with alternate characters in each row representing first bars, then spaces. So the pattern 82131 represents an 8 unit bar followed by a 2 unit space, a 1 unit bar, a 3 unit space and a 1 unit bar.
Each row of the barcode symbol is terminated by a newline character (\n or CHR$(10)) in the pattern string.
PDF417 symbols do not contain row separators.
Databar
The Pattern string for a linear Databar symbol consists of a stream of digit characters, with alternate characters representing first bars, then spaces. So the pattern 12131 represents an 1 unit bar followed by a 2 unit space, a 1 unit bar, a 3 unit space and a 1 unit bar, etc.
The Pattern strings for Stacked Databar symbols are more complex! The string consists a stream of digit characters, with each row of the symbol (including the separator patterns) being separated by a newline (\n or CHR(10)) character. The FIRST character of each row is not a part of the symbol, but represents whether the remaining characters of the row occur in the sequence bar – space – bar (for which the first character is a 1) or space – bar – space (for which the first character is a 0). The remaining characters in each row represent the length of the relevant element. So the row pattern 112131 represents an 1 unit bar followed by a 2 unit space, a 1 unit bar, a 3 unit space and a 1 unit bar, etc., while the row pattern 042131 represents an 4 unit space followed by a 2 unit bar, a 1 unit space, a 3 unit bar and a 1 unit space, etc.
The row heights are given in the Databar barcode section. Users requiring further information on the allowed sizes for Databar codes should refer to the Databar standard specification..
More: