VB.NET GS1-128 Generator Introduction
GS1-128, former known as EAN-128, UCC-128, USS-128, is alphanumeric linear barcode developed on Code 128, however, using GS1 standard.
Using VB.NET GS1-128 Generator to create GS1-128 barcodes in VB.NET program is a simple and easy job. VB.NET GS1-128 Generator control is easy to install with a single .NET Barcode generation control. It is easy to generate GS1-128 barcodes in VB.NET class with detailed VB.NET GS1-128 settings document and complete demo for GS1-128 generation in VB.NET provided in this article.
GS1 128 Generators
OnBarcode provides several GS1 128 Generator components and software, including Java GS1 128 Generator, C# GS1 128 Generator, .NET GS1 128 Generator, GS1 128 Generator, ASP.NET GS1 128 Generator.
Create GS1-128 / EAN-128 Barcodes in VB.NET
Creating GS1-128 / EAN-128 barcode in VB.NET class example:
Imports OnBarcode.Barcode
Dim barcode As Linear = New Linear
' GS1-128 / EAN-128 Barcode Basic Settings
barcode.Type = BarcodeType.EAN128
' GS1-128 / EAN-128 Valid data char set:
' all 128 ASCII characters (Char from 0 to 127)
' to encode Application Identifier (AI), add "()" around the AI code, followed by the AI data
barcode.Data = "(00)350123451234567894(21)01234567"
' Set the ProcessTilde property to true, if you want use the tilde character "~"
' to specify special characters in the input data. Default is false.
'
' 1) 1-byte character: ~0dd/~1dd/~2dd (character value from 000 ~ 255);
' ASCII character '~' is presented by ~126;Strings from "~256" to "~299" are unused
' modified to FS, GS, RS and US respectively.
' 2) 2-byte character (Unicode): ~6ddddd (character value from 00000 ~ 65535)
' Strings from "~665536" to "~699999" are unused
' 3) for GS1 AI Code:
' ~ai2: AI with 2 digits
' ~ai3: AI with 3 digits
' ~ai4: AI with 4 digits
' ~ai5: AI with 5 digits
' ~ai6: AI with 6 digits
' ~ai7: AI with 7 digits
barcode.ProcessTilde = True
' Barcode Size Related Settings
barcode.UOM = UnitOfMeasure.PIXEL
barcode.X = 1
barcode.Y = 80
barcode.LeftMargin = 0
barcode.RightMargin = 0
barcode.TopMargin = 0
barcode.BottomMargin = 0
barcode.Resolution = 96
barcode.Rotate = Rotate.Rotate0
' Barcode Text Settings
barcode.ShowText = True
barcode.TextFont = New Drawing.Font("Arial", 9.0F, Drawing.FontStyle.Regular)
barcode.TextMargin = 6
' Image format setting
barcode.Format = System.Drawing.Imaging.ImageFormat.Gif()
barcode.drawBarcode("c://ean-128.gif")
VB.NET Barcode Generators Demo Source Codes
Barcode Control for VB.NET - Bar Code Type Generation
- VB.NET 1D / Linear Barcodes:
- VB.NET 2D / Matrix Barcodes: Data Matrix in VB.NET, PDF-417 in VB.NET, QR Code in VB.NET, Micro PDF-417 in VB.NET, Micro QR Code in VB.NET