The following is a list of everything needed to generate the GS1-128 which uses many specifications including EAN-128 for the USPS, SSCC18, SCC14.
• Barcode Fonts: Code 128 Font Package
• Barcode Font Encoder: An encoder is a tool such as a plug-in, add-in, or formula that formats the data before the barcode font is applied. View a list of downloadable font encoders for various applications such as Crystal, FileMaker, MS Office, and Visual Studio.
1. Download and Install the Code 128 Fonts
2. Download the font encoder for the application that will be used to create barcodes.
3. To install the font encoder, follow the tutorial for the specific font encoder.
Which Code 128 function in the Font Encoder to use?
Although IDAutomation has functions for Code 128 A, Code 128 B, and Code 128 C, use the IDAutomation function named Code 128. In most of our products, it is the function or formula that does not have the letter A, B, or C after it.
Example: IDAutomation_Code128() or Code128()
How to encode the FNC1, DATA, and MOD 10
Because the font encoder for the Code 128 function adds start/stop character, it will automatically add the start C which is commonly used for GS1-128. For this example, IDAutomation will use the .NET Assembly Font Encoder to illustrate how data can be properly formatted for GS1.
• STEP 1
When encoding GS1-128 barcodes, a feature named ApplyTilde must be enabled to encode the FNC1 and calculate the MOD10 check digit. Enable ApplyTilde using the .NET Assembly DLL by setting the third parameter to 1.
(For other font encoders, view the function list to determine how to enable the property/parameter. Some encoders require the parameter to be set to True or Yes.)
• STEP 2
Encode the FNC1 by inserting ~212 for two digit AIs, ~213 for three digit AIs, ...
(Most IDAutomation encoders accept parentheses around the AI such as (420). However, the tilde method can also be used.)
• STEP 3
Calculate the MOD10 check digit by inserting ~m and the amount of digits you need to calculate. The number 22 is based on the human readable value which is 22 digits
• STEP 4
Once the data is encoded, apply the IDAutomationC128M barcode font by changing the font within the font selection window from its current font name to the barcode font.
• STEP 5
Review GS1-128 height and width specification to ensure that the Code 128 barcode is correct. GS1-128 Font Specifications
• Crystal Reports Example using UFL
• MS Excel Example using VBA
Posted 1737 day(s) ago