New to Telerik Reporting? Download free 30-day trial
One-dimensional (1D) barcodes consists of lines and spaces of various widths that create specific patterns.
This section describes the common settings for one-dimensional barcodes.
Code128A, Code128B and Code128C represent the A, B and C subsets of the Code128 symbology. Code128 uses an intelligent algorithm that picks automatically the appropriate subset according to the input value, and might switch between these subsets in the middle of a barcode in order to produce a shorter generated sequence. For example, if you have the input string “ABCD1234”, the “ABCD” part of the string will be encoded using the A subset, while the “1234” part will be encoded with the C subset, because Code128C uses a double-density code for numerical values, thus producing a shorter barcode as a result. If you want to disable this behavior you can specify explicitly one of the subsets: Code128A, Code128B or Code128C to the Symbology property of the barcode report item.
Code128 can represent both ASCII characters and non-ASCII control characters. Normally the barcode report item inserts automatically the appropriate control characters in order to conform to the Code128 specification. However certain applications might require manual insertion of certain control characters, such as the functional characters: FNC1-FNC4. For this purpose the barcode report item assigns special Unicode values to these control characters outside the normal 0-127 ASCII code range. The following table lists all Code128 control characters and their corresponding Unicode values:
For example, the following code inserts the FNC4 control character in the middle of a barcode:
GS1-128 is a special case of Code128. The only difference between GS1-128 and Code 128 is that GS1-128 inserts the FNC1 control character at the beginning of the barcode in order to conform to the GS1-128 specification. If you have a multi-part GS1-128 barcode which requires the FNC1 control character as a delimiter between the different parts, you should insert it manually: