This Symbology is also known as ANSI/AIM 128, ANSI/AIM Code 128, USS Code 128, Uniform Symbology Specification Code 128, Code 128 Code Set A, Code 128 Code Set B, Code 128 Code Set C, Code 128A, Code 128B, Code 128C
This Barcode Symbology is supported by the following Neodynamic products:
The last seven characters of Code Sets A and B (character values 96 - 102) and the last three characters of Code Set C (character values 100 - 102) are special non-data characters with no ASCII character equivalents, which have particular significance to the bar code reading device.
Note: Please refer to the Class Reference documentation for more information about the properties and methods stated in this document.
In order to get a Code 128 barcode image, please follow these steps:
- Set the Symbology property to Code128
- Set the Code128CharSet property to one of the following values depending on your needs:
- Auto: Barcode Professional will automatically switch between code sets to encode the ASCII values.
- A: Barcode Professional will use the Char Set A which only supports ASCII values from 0 to 95
- B: Barcode Professional will use the Char Set B which only supports ASCII values from 32 to 127
- C: Barcode Professional will use the Char Set C which only supports pairs of digits
- Barcode Professional allows explicit switching between Code 128 Char Sets. Read more about how it works.
- Setting up dimensions and quiet zones:
- Set the BarWidth and BarHeight properties (Values are expressed in Inches)
- Set the QuietZoneWidth property (Value is expressed in Inches)
- Set the TopMargin and BottomMargin properties (Values are expressed in Inches)
- Set the Code property with the value to encode.
- Setting up the Bearer Bars if needed:
- Set the BearerBarStyle property to Frame, or HorizontalRules
- Set the BearerBarWidth property (Value is expressed in Inches)
- Barcode Professional will automatically generate and append the checksum value.
- Note: In this Symbology the checksum won't appear in the human readable text.
- Tip: You can disable this behavior by setting up to False the AddChecksum property.
Note: Please refer to the Class Reference documentation for more information about the properties and methods stated in this document.
In order to get a Code 128 barcode image, please follow these steps:
- Set the Symbology property to Code128
- Set the Code128CharSet property to one of the following values depending on your needs:
- Auto: Barcode Professional will automatically switch between code sets to encode the ASCII values.
- A: Barcode Professional will use the Char Set A which only supports ASCII values from 0 to 95
- B: Barcode Professional will use the Char Set B which only supports ASCII values from 32 to 127
- C: Barcode Professional will use the Char Set C which only supports pairs of digits
- Barcode Professional allows explicit switching between Code 128 Char Sets. Read more about how it works.
- Setting up dimensions and quiet zones:
All values for barcode dimensions are expressed in INCHES by default. However, Barcode Professional supports other unit of measurement such as Millimeter, Centimeter, and Mils. For modifying the unit of measurement for barcoding, please set up the BarcodeUnit property as needed.
- Set the BarWidth and BarHeight properties (Values are expressed in Inches)
- Set the QuietZone property (Value is expressed in Inches)
- Set the Code property with the value to encode.
- Setting up the Bearer Bars if needed:
- Set the BearerBarStyle property to Frame, or HorizontalRules
- Set the BearerBarWidth property (Value is expressed in Inches)
- Barcode Professional will automatically generate and append the checksum value.
- Note: In this Symbology the checksum won't appear in the human readable text.
- Tip: You can disable this behavior by setting up to False the AddChecksum property.
You can handle how the data must be encoded specifying some special chars that represent each Code 128 Char Set. The special chars that tell to Barcode Professional what Code Set must be used to encode the data that follows it are these:
Suppose you need to encode 3 alpha chars using Char Set A and 10 numeric digits using Char Set C. You can get it by setting up the following properties: