.NET GS1-128/UCC/EAN-128 Barcodes Generator for .NET, C#, ASP.NET, VB.NET
.NET Barcode offers the most affordable .NET barcode generator for barcode .NET professionals.
.NET GS1-128/UCC/EAN-128 Introduction
EAN-128 is also known as EAN-128,
UCC-128, USS-128, GS1-128, UCC.EAN-128, GTIN-128, UCC-12, EAN/UCC-13,
EAN/UCC-14
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.
How to generate GS1-128/UCC/EAN-128 barcodes in C#.NET Class?
The following C# .NET code illustrates how to generate a GS1-128/UCC/EAN-128 barcode in C# class:
using KeepDynamic.Barcode.Generator;
BarCode barcode = new BarCode();
barcode.SymbologyType = SymbologyType.EAN128;
barcode.CodeText = "(01)123456789";
barcode.Format = ImageFormat.Png;
barcode.drawBarcode("C://barcode-ean128-csharp.png");
barcode.drawBarcode("Graphics object");
barcode.drawBarcode("Stream object");
How to generate GS1-128/UCC/EAN-128 barcodes in VB.NET Class?
The following VB.NET code illustrates how to generate GS1-128/UCC/EAN-128 barcodes in VB.NET class:
// Create linear barcode object in VB.NET
Dim barcode As KeepDynamic.Barcode.Generator.BarCode
barcode = New KeepDynamic.Barcode.Generator.BarCode()
// Set barcode symbology type to EAN128 in VB.NET
barcode.SymbologyType = SymbologyType.EAN128;
// Set EAN-128 barcode value in VB.NET
barcode.CodeText = "(01)987654321"
// Set EAN-128 drawing image format to PNG in VB.NET
barcode.Format = ImageFormat.Png
// Generate GS1-128 barcode & encode to the png image in VB.NET
barcode.drawBarcode("C://barcode-ean128-vbnet.png")
// Generate GS1-128 barcode & print to System.Drawing.Graphics object in VB.NET
barcode.drawBarcode("Graphics object")
// Create GS1-128 barcode & draw to System.IO.Stream object in VB.NET
barcode.drawBarcode("Stream object")
Creating GS1-128/UCC/EAN-128 barcodes using .NET Barcode Generator Windows Form Control
To create GS1-128/UCC/EAN-128 barcodes in Windows Forms applications, do the following procedures:
- Add KeepDynamic.BarCode.Windows.dll to your C#, VB.NET project reference
- Add KeepDynamic.BarCode.Windows.dll to windows project toolbox
- Drag the BarCodeControl item to your windows forms
Creating GS1-128/UCC/EAN-128 barcodes using ASP.NET Barcode Generator ASP.NET Web Form Control
To create GS1-128/UCC/EAN-128 barcodes in ASP.NET Web Forms applications, do the following procedures:
- Add KeepDynamic.BarCode.AspNet.dll to your C#, VB.NET project reference
- Add KeepDynamic.BarCode.AspNet.dll to windows project toolbox
- Drag the BarCodeControl item to your ASP.NET Web form pages, in your ASP.NET design view
.NET GS1-128/UCC/EAN-128 Barcodes Properties
| Class Properties |
HTTP Parameters |
Default |
Comments |
| SymbologyType |
symbology-type |
SymbologyType.Code128 |
Barcode type. Value for GS1-128/EAN-128 is SymbologyType.EAN128 |
| CodeText |
code-text |
"" |
Barcode value to encode |
| EnableChecksum |
enable-checksum |
true |
Checksum for barcode value |
| GraphicsUnit |
graphics-unit |
GraphicsUnit.Pixel |
BarCode graphics meature for all size related settings. 0: pixel; 1: cm; 2: inch. Default is pixel |
| X |
x |
2 |
Width of barcode module (narrow bar), default is 2 pixel |
| Y |
y |
75 |
Barcode module height, default is 75 pixel |
| LeftMargin |
left-margin |
0 |
Barcode image left margin |
| RightMargin |
right-margin |
0 |
Barcode image right margin |
| TopMargin |
top-margin |
0 |
Barcode image top margin |
| BottomMargin |
bottom-margin |
0 |
Barcode image bottom margin |
| Resolution |
resolution |
72 |
Barcode image resolution in dpi |
| Rotate |
rotate |
0 |
Barcode rotate angle, valid values: 0, 90, 180, 270 |
| DisplayCodeText |
display-code-text |
true |
If true, display barcode value text, otherwise do not display. |
| CodeTextFont |
code-text-font |
"Arial", Font.PLAIN, 11 |
Barcode text font style |
| Format |
format |
ImageFormat.Png |
Image format type. Using System.Drawing.Imaging.ImageFormat |
| ProcessTilde |
process-tilde |
false |
Set the ProcessTilde property to true, if you want use the tilde character "~" to specify special characters in the input data.
Default is false.
~NNN: is used to represent the ASCII character with the value of NNN. NNN is from 000 - 255. |
| FNC1 |
fnc1 |
0 (none) |
|
| ApplicationIndicator |
ai |
0 |
|
.NET Barcode Generator supports most common linear (1d) and matrix (2d) bar code standards, including: