The UCC/EAN-128 Symbology is a
subset of the more general Code 128 Symbology.
UCC/EAN-128 was developed to provide a worldwide format and standard for exchanging
common data between companies. While other bar codes simply encode data with no respect for
what the data represents, UCC/EAN-128 encodes data and encodes what that data represents.
UCC/EAN-128 has
a list of Application Identifiers (AI). The
Application Identifier is a 2, 3, or 4-digit number that identifies the type of
data which follows. By convention, the Application Identifier is enclosed in
parentheses when printed below the barcode (the parentheses are only for visual
clarity, and are not encoded in the barcode).
CH(100)12345777AI(21)12345678.gif)
Sample of a UCC/EAN-128 Barcode
How to encode UCC/EAN-128 values using Barcode Library
Introduction
UCC/EAN 128 encodes the so called Element Strings which are composed of an Application Identifier (AI)
plus a data field.
Each AI identifies the meaning and format of the data following it.
Note that the AI has parentheses around it in the human readable text,
but the parentheses are not encoded in the barcode.
Encode AI Code
In Barcode Library, developer mush put
AI(dddd) around AI code, for the above sample image, you must
set
Data property =
'AI(21)d12345777AI(21)12345678'.
Encode ASCII Data
In Barcode Library, you can use
CH(ddd) format to encode ASCII data, for example
CH(100) =
d.
So for the above sample image, you can also
set
Data property = 'AI(21)
CH(100)12345777AI(21)12345678'.
UCC/EAN 128 Barcode for .NET, ASP.NET supports:
- all 128 characters of ASCII
- Add Reference BarcodeLib.Barcode.dll to your .NET project (ASP.NET website, Forms, any .NET project)
In your .NET class.
BarcodeLib.Barcode.Linear.Linear barcode = BarcodeLib.Barcode.Linear.Linear();
barcode.Data = "your barcode data";
// other barcode settings.
// save barcode image into your system
barcode.drawBarcode("c:/barcode.gif");
* Please set properties
UOB and
Resolution, before you set any image size related properties like barWidth, margin.