• Easy to integrate Postnet barcode generation component into your VB.NET Programs
  • Completely written in VB.NET for .NET 2.0/3.0/4.0
  • Support numeric data only to be encoded into Postnet
  • Compatible with Postnet barcode specification
  • Simple to set Postnet barcode data length into 5, 6, 9, 11 digits only
  • Support to automatically add a checksum digit for Postnet barcodes
  • User-defined options for customize Postnet barcode size, image, color, etc
  • Professional Postnet barcode generation component
Installation of .NET Barcode Generator in VB.NET
  1. Download BusinessRefinery.com VB.NET barcode component and unzip
  2. Add BusinessRefinery.Barcode.Win.dll or BusinessRefinery.Barcode.Web.dll to your .NET project reference
  3. Add .NET Barcode Generator .NET Windows Control Library to .NET Visual Studio Toolbox
  • Right click .NET Visual Studio Toolbox, select menu Choose Items...
  • In "Choose Toolbox Items" form, click button "Browse...", and select dll BusinessRefinery.Barcode.Win.dll or BusinessRefinery.Barcode.Web.dll
Encode Postnet Valid Characters in VB.NET
There are 2 elements that influence Postnet input characters: (a), Postnet valid character set; (b), Postnet valid length.

(a)Postnet Valid Character Set

Postnet barcode is numeric-only linear barcode which encodes:

  • 0, 1, 2, 3, 4, 5, 6, 7, 8, 9

Dim barcode As BusinessRefinery.Barcode.Linear barcode = New BusinessRefinery.Barcode.Linear()
barcode.Symbology = BusinessRefinery.Barcode.Symbology.POSTNET
barcode.Code = "78965"
barcode.drawBarcode2ImageFile("C://posnet.gif")

(b)Postnet Valid Length

Postnet barcode is fixed-length linear barcode, which supports to encode postnet barcode into 5-digit length, 6-digit, length, 9-digit length, and 11-digit length, excluding a checksum digit in the end. VB.NET Postnet barcode allows user to control Postnet barcode length using Code property.

Encoding Postnet barcode into 5-digit length

barcode.Code = "12345"

Encoding Postnet barcode into 6-digit length

barcode.Code = "987654"

Encoding Postnet barcode into 9-digit length

barcode.Code = "987654321"

Encoding Postnet barcode into 11-digit length

barcode.Code = "98765432101"





Quick Links