How to Encode EAN-128/GS1-128 Data in VB.NET
VB.NET EAN-128/GS1-128 Generator can be completely run in Visual Basic .NET and easily integrated into any VB.NET applications, using .NET Design View Barcode Control to make EAN-128/GS1-128 generation faster and easier.
VB.NET EAN-128/GS1-128 Generator provides comprehensive barcode generation guide for users and requires minimum EAN-128/GS1-128 barcode knowledge. Here is detailed EAN-128/GS1-128 data, image, and size setting in VB.NET according to its specification in GS1 system standard
EAN-128/GS1-128 Data Related Properties
Symbology
Barcode property Symbology is provided by Barcode Generator for .NET Ultimate for users to encrypt EAN-128/GS1-128 barcode encodable character sets in VB.NET.
VB. EAN-128/GS1-128 Barcode encodes:
- All 128 ISO/IEC 646 characters
- Characters with byte values 128 to 255 may also be encoded
- 4 non-data function characters
- 4 code set selection characters
- 3 Start characters
- 1 Stop character
Code
Barcode property Code is provided by Barcode Generator for .NET Ultimate for users to manipulate data length of EAN-128/GS1-128 barcodes.
ProcessTilde
Barcode property ProcessTilde is provided by Barcode Generator for .NET Ultimate for users to encode some special characters for EAN-128/GS1-128 barcode using a tilde characters "~".
- 1-byte character: ~0dd/~1dd/~2dd (character value from 000 ~ 255); ASCII character '~' is presented by ~126
Strings from "~256" to "~299" are unused
- 2-byte character (Unicode): ~6ddddd (character value from 00000 ~ 65535)
Strings from "~665536" to "~699999" are unused
- for GS1 AI Code:
Check Digit Calculation
Barcode properties AddChecksum and DisplayChecksumDigit are provided by Barcode Generator for .NET Ultimate for users to calculate and display an optional Modulo 43 check digits for EAN-128/GS1-128 barcodes as they wish.
Human-readable Text
Barcode properties DisplayText and Textfont are provided by Barcode Generator for .NET Ultimate for users to display specified human-readable code text under EAN-128/GS1-128 barcode.
Customize EAN-128/GS1-128 Barcode Data in VB.NET
Make sure that your have installed those programs before you encode EAN-128/GS1-128 data in VB.NET:
- Microsoft .NET Framework 2.0/3.0/4.0
- Microsoft Visual Studio 2005/2008/2010 (Express, Professional & Standard Edition)
- Barcode Generator for .NET Ultimate installed
Encode EAN-128/GS1-128 Barcode Data in .NET Project Using VB.NET Class
Copy those following code onto your VB.NET projects:
Dim barcode As BusinessRefinery.Barcode.Linear =
New BusinessRefinery.Barcode.Linear()
barcode.Symbology = BusinessRefinery.Barcode.Symbology.EAN128
barcode.Code = "(48)97/97*/9746"
barcode.drawBarcode2ImageFile("c:/ean-128-vb-net.gif")
Control EAN-128/GS1-128 Barcode Data Length
In Barcode Generator for .NET Ultimate, the default value of Code is "".
Copy those following code to change EAN-128/GS1-128 barcode data length:
Display EAN-128/GS1-128 Barcode Human-Readable Text
In Barcode Generator for .NET Ultimate, the default value of DisplayText is true.
In Barcode Generator for .NET Ultimate, the default value of TextFontis new Font("Arial", Font.PLAIN, 11).
Copy those following code to show human-readable text with customized font style:
barcode.DisplayText = true
barcode.TextFont = new Font("Arial", 11.0f, FontStyle.Bold)
Encode EAN-128/GS1-128 Barcode Data with "~" in VB.NET
In Barcode Generator for .NET Ultimate, the default value of ProcessTilde is false.
Copy those following code to encode EAN-128/GS1-128barcode data with "~":
barcode.ProcessTilde= true
barcode.Code = "~ai31544189"