BizCode Barcode Generator for .NET Ultimate
The most robust & powerful barcode generating SDK for Microsoft .NET Framework
Quick Overviews
  • Powerful barcode creating DLL
  • Completely run in VB.NET
  • 100% sample code provided
  • Multiple barcode formats
  • Full controls provided
How to Encode Code 128 Data in VB.NET
VB.NET Code 128 Generator provides an easy way to generate, draw, and render Code 128 images in VB.NET environment. It may work perfectly with Microsoft Visual Studio 2005/2008/2010 and VB.NET 2.0/3.0/4.0.
Installing VB.NET Code 128 Generator, users may encode Standard ASCII characters and Extended ASCII characters into Code 128 barcode with its Code set A, B, C. Besides, tilde character "~" can be used for simply encoding specific ASCII characters. This document tells how to encode Code 128 valid characters in accordance with its specification - ISO / IEC 15417 (2nd edition 2007-06-01); if you want to know more, please link to:
Code 128 Data Related Properties

Symbology

Barcode property Symbology is provided by Barcode Generator for .NET Ultimate for users to encrypt Code 128 barcode encodable character sets with Subset A, Subset B and Subset C in VB.NET.

VB.NET Code 128 Barcode encodes:
  • Code128Auto: encodes all encodable characters of Code 128
  • Code128A: encodes all of the standard upper case alphanumeric characters and punctuation characters together with the control characters
  • Code128B: all of the standard upper case alphanumeric characters and punctuation characters together with the lower case alphabetic characters
  • Code128C: the set of 100 digit pairs from 00 to 99 inclusive, as well as three special characters

Code

Barcode property Code is provided by Barcode Generator for .NET Ultimate for users to manipulate data length of Code 128 barcodes.

ProcessTilde

Barcode property ProcessTilde is provided by Barcode Generator for .NET Ultimate for users to encode some special characters for Code 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

Check Digit Calculation

Barcode properties AddChecksum and DisplayChecksumDigit are provided by Barcode Generator for .NET Ultimate for users to calculate and display a Modulo 103 check digits for Code 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 Code 128 barcode.
Customize Code 128 Barcode Data in VB.NET
Make sure that your have installed those programs before you encode Code 128 data in VB.NET:
Encode Code 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.CODE128Auto
barcode.Code = "Code 128"

barcode.drawBarcode2DataFile("c:/code-128-vb-net.gif")
Encode Code 128 Barcode Sub Set A, B, C in VB.NET
Copy those following code onto your VB.NET projects:
barcode.Symbology = BusinessRefinery.Barcode.Symbology.CODE128C
barcode.Code = "14646416"
Control Code 128 Barcode Data Length
In Barcode Generator for .NET Ultimate, the default value of Code is "".

Copy those following code to change Code 128 barcode data length:
barcode.Code = "5648"
Display Code 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 Code 128 Barcode Data with "~" in C#.NET
In Barcode Generator for .NET Ultimate, the default value of ProcessTilde is false.

Copy those following code to encode Code 128barcode data with "~":
barcode.ProcessTilde= true
barcode.Code = "~189"