Compiled fully in Visual C#.NET with 100% compatiblity with Visual Studio .NET Framework
Directly use .NET Barcode Generator SDK barcoding functions for linear Code 128 barcode generation
Generate & print Code 128 1D barcode for ASP.NET, .NET WinForms, .NET Class Library, etc
Generate & draw linear Code 128 barcode images on SQL Server Reporting Services for .NET projects
Insert & draw Code 128 images on Crystal Reports and RDLC Reports for .NET projects
All encoded Code 128 barcodes comply with its latest barcode standards, compatible with almost all printers
Provide several license types for ordering this professional Visual Basic Barcoding Component for .NET
This section provides an overview of generating Code 128 barcodes using the BarcodeLib SDK within VB.NET. Code 128, also referred to as ANSI/AIM 128, USS Code 128, or Uniform Symbology Specification Code 128, is a high density linear symbology known for its excellent reliability and comprehensive character support.
The BarcodeLib VB.NET Code 128 Generator is designed for straightforward integration into Windows Forms (WinForms) and Windows Presentation Foundation (WPF) desktop applications, as well as class libraries and console projects.
VB.NET Code 128 Barcode Generator Library
QR Code, Data Matrix, Code 128, GS1, EAN/UPC. Unicode text encoding in VB.NET desktop application.
Linear barcode Code 128 is still called USS Code 128, Code 128 Code Set A, Code 128 Code Set B, Code 128 Code Set C, ANSI/AIM 128, ANSI/AIM Code 128, Uniform Symbology Specification Code 128, Code 128A, Code 128B, Code 128C.
ISO/IEC Standard Compatibility: Complying with ISO/IEC 15417 (Second edition 2007-06-01)
Code 128 Three Code Sets
Code Set A (or Chars Set A): all of the standard upper case U.S. alphanumeric keyboard characters and punctuation characters together with the control characters, (i.e. characters with ASCII values from 0 to 95 inclusive), and seven special characters.
Code Set B (or Chars Set B): all of the standard upper case alphanumeric keyboard characters and punctuation characters together with the lower case alphabetic characters (i.e. characters with ASCII values from 32 to 127 inclusive), and seven special characters.
Code Set C (or Chars Set C): the set of 100 digit pairs from 00 to 99 inclusive, as well as three special characters. This allows numeric data to be encoded as two data digits per symbol character, at effectively twice the density of standard data.
Code 128 Special Characters
The last seven characters of Code Sets A and B (character values 96 - 102) and the last three characters of Code Set C (character values 100 - 102) are special non-data characters with no ASCII character equivalents, which have particular significance to the bar code reading device.
Using BarcodeLib barcode library, you can set the Type property to BarcodeType.CODE128, and the library will determine the correct code set automatically.
If manual selection of the Code 128 code set is required, set the Type property to one of the following:
How to encode ASCII text in Code 128 barcode in vb.net?
Encode ASCII text with control characters in VB.NET
Code 128 supports full ASCII 128 characters encoding. Most of the ASCII characters are printable, and you can input them directly using keyboard. Some control characters
are non-printable, you need use the following method to encode in the Code 128 barcode.
Enable property ProcessTilde to true.
In property Data, you need pass these control character's ASCII integer value in the following format: ~ddd. Here ddd is the ASCII value in 3 digits.
A mandatory check digit (checksum) character is included in Code 128 barcodes, based on modulo 103 (mod 103). This check digit is not displayed in the human-readable interpretation (barcode text) and is not returned by the barcode decoder.
In the Linear barcode library class, the AddCheckSum property does not apply to Code 128. The library always calculates and appends a check digit character before the stop character.
Create Code 128 barcode with customized size in VB.NET?
Set property ImageWidth with the specified Code 128 barcode image width in pixel.
Set property ImageHeight with the specified Code 128 barcode image height in pixel.
Disable property ShowText to false to not print Code 128 text label in the barcode image.
barcode.ShowText=False
Code 128 text position
Use property TextMargin to specify the margin space (in pixel) between bars and printed text string.
barcode.TextMargin=50
Summary
This guide has provided a comprehensive walkthrough for generating Code 128 barcodes using the BarcodeLib SDK in VB.NET, with particular attention to the flexibility of encoding all 128 ASCII characters and supporting tilde notation for special character representation.
These capabilities are well suited for integration into Windows Forms (WinForms) and Windows Presentation Foundation (WPF) desktop applications, enabling developers to incorporate high density linear barcode generation into their .NET projects. The included code example and list of supported symbologies serve as a practical reference for implementing barcode functionality across a variety of VB.NET application types.