KA.Barcode Generator for .NET Suite
How to Print Code 128 in VB.NET with Valid Data
Complete VB.NET source code to generate, print Code 128 using Barcode Generator for .NET Control
  • Easily, completely implement Code 128 generating control within VB.NET IDEs
  • Programmatically generating, printing Code set A, Code set B, and Code set C in VB.NET
  • Create and draw Code 128 barcodes in VB.NET class library, ASP.NET websites and Windows projects
  • Draw Intelligent Mail ASP.NET, Code 128 .NET, EAN-13 C#, ISBN .NET WinForms & other UPC-E VB.NET in .NET IDEs
  • Simple to draw, insert Code 128 in SQL Server Reporting Services, or add Code 128 in Crystal Reports
  • Accurately encode all the ASCII characters into Code 128 barcodes with Visual Basic .NET programming
  • Efficient create, print Code 128 bar code images with a variable length with Visual Basic.NET
  • High-quality Code 128 generation complying with ISO / IEC 15417 (2nd edition 2007-06-01)
  • Provide detailed .NET barcode guide, ASP.NET barcode creation & Java barcode creation guides for users
  • Professional Code 128 generating control with flexible developer licenses
Code 128 Generation in VB.NET is one barcode printing function of KA.Barcode Generator for .NET Suite to generate, insert Code 128 images in .NET development environments. It is the best available barcoding component SDK used world-wide. Besides data encoding, KeepAutomation provides some more detailed tutorials with VB.NET sample codings for Code 128 barcode size & image settings.
Code 128 Barcode Information
Code 128 (a.k.a ANSI/AIM 128, Uniform Symbology Specification Code 128, USS Code 128) is a linear barcode in very wide use world-wide for its excellent density and high reliability.

Code 128 for VB.NET encodes:

  • Code 128 A (Code Set A): 0-9, upper-case letters A-Z, and special characters
  • Code 128 B (Code Set B): 0-9, A-Z, lower-case letters a-z, and special characters
  • Code 128 C (Code Set C): numeric digit pairs 00-99
  • KA provides Code 128Auto to allow encoding all the data types above
Code 128 Data Encoding in KA.Barcode Generator for .NET Suite

Procedures to Install KA.Barcode Generator for .NET Suite

  1. 1.
  2. 2.
    Copy "KeepAutomation.Barcode.Windows.dll"/"KeepAutomation.Barcode.Web.dll" to your VB.NET project folder
  3. 3.
    Add the above two barcoding component DLL(s) to your VB.NET project reference
Copy those following VB.NET barcoding program onto you forms to create, produce a Code 128 image:
Dim barcode As KeepAutomation.Barcode.Bean.BarCode = New KeepAutomation.Barcode.Bean.BarCode
barcode.Symbology= KeepAutomation.Barcode.Symbology.Code128Auto
barcode.CodeToEncode = "Code 128"
barcode.generateBarcodeToImageFile("C://barcode-code128-vbnet.gif")
Code 128 is variable-length, so users are free to encode and make Code 128 barcodes at any length with 3 different Code Set: Code Set A, Code Set B, and Code Set C using our VB.NET Code 128 Barcode Control.

VB Sample Code to Encode Code 128 Code Set A

Code 128 Code Set A encodes characters with values from 00-95 according to ISO/IEC 646 and seven special characters.
  • Numeric numbers: 0-9
  • Upper case alphanumeric characters: A-Z
  • Punctuation characters
  • Control characters
barcode.Symbology= KeepAutomation.Barcode.Symbology.Code128A
barcode.CodeToEncode = "CODE-128"

VB.NET Demo Code to Encode Code 128 Code Set B

Code 128 Code Set B encodes characters with values from 32-127 according to ISO/IEC 646 and seven special characters.
  • Numeric numbers: 0-9
  • Upper case alphanumeric characters: A-Z
  • Lower case alphanumeric characters: a-z
  • Punctuation characters
barcode.Symbology= KeepAutomation.Barcode.Symbology.Code128B
barcode.CodeToEncode = "Code-128"

VB.NET Example Codings to Encode Code 128 Code Set C

Code 128 Code Set A encodes the set of 100 digit pairs from 00 to 99 and three special characters
  • Numeric number pairs: 00-99
  • Special characters
barcode.Symbology= KeepAutomation.Barcode.Symbology.Code128C
barcode.CodeToEncode = "123456"