KA.Barcode for .NET Suite
How to Generate POSTNET in .NET Application
How to create & print linear POSTNET barcode images in C#, VB.NET, ASP.NET web, and Windows Forms projects
  • Entirely compatible with .NET Visual studio 2005 and later versions
  • Comply with latest postal barcode specification or standards
  • POSTNET Barcode SDK Library DLL for ASP.NET and .NET Winforms
  • One of the easiest methods for POSTNET barcode creation for .NET application
  • Support using C#.NET and VB.NET to produce POSTNET in Visual Studio
  • Modify inserted POSTNET image properties like color, margin, short to tall bar ratio, etc
  • All generated POSTNET barcode images are available for almost all printers
  • Royalty free with purchase of flexible and perpetual user licenses
KA.Barcode for .NET Suite is a reliable and efficient barcode generator component. It is often used to create linear and matrix barcode types in various .NET development environments, such as Windows Application, Class Library, Console Application, Crystal Reports Application, and so on. In addition, the barcode images created by KA.Barcode for .NET Suite can be saved in different image formats including GIF, BMP, PNG, JPEG and TIFF.
POSTNET Overview in .NET Control
POSTNET, abbreviated from Postal Numeric Encoding Technique, is a numeric barcode symbology. Different from most other barcodes, it has requirement to the actual bar height and width. And this barcode type is used by the United States Postal Service to encode ZIP information.

POSTNET Barcode Data in .NET SDK Library

  • Numeric digits: 0, 1, 2, 3, 4, 5, 6, 7, 8, 9
POSTNET Generation in .NET Component
Please download free KA.Barcode for .NET Suite evaluation package and unzip.

How to Drag and Drop POSTNET Barcode DLL to .NET Project

  1. 1.
    Open a new project to activate toolbox, then right-click "Components", select "Choose Items..." and click "Browse..."
  2. 2.
    Select "KeepAutomation.Barcode.Web.dll" or "KeepAutomation.Barcode.Windows.dll", and click "Open"
  3. 3.
    Drag "BarCodeControl" in the "Toolbox" to web or windows form, you can see a inserted Code 128 barcode
  4. 4.
    Change default barcode type and other properties in "Properties" panel, then click the created barcode image

How to Create POSTNET in C# or VB.NET Programming

The C# or VB.NET sample code of KA.Barcode for .NET Suite below is provided for users to generate and draw POSTNET barcode images in .NET Visual Studio for ASP.NET and Windows Forms applications.

using KeepAutomation.Barcode.Bean;

BarCode POSTNET= new BarCode();
POSTNET.Symbology= KeepAutomation.Barcode.Symbology.Postnet;
POSTNET.CodeToEncode = "01234";

Dim POSTNET As KeepAutomation.Barcode.Bean.BarCode = New KeepAutomation.Barcode.Bean.BarCode

POSTNET.Symbology= KeepAutomation.Barcode.Symbology.Postnet
POSTNET.CodeToEncode = "01234"
POSTNET.ImageFormat = System.Drawing.Imaging.ImageFormat.Gif()

How to Add POSTNET with Short Tall Ratio in .NET Application

POSTNET barcode is also one member of postal barcode family as well as PLANET barcode. Short Tall Ratio is exclusively designed for them to set the height of the short bars. In .NET Visual Studio, developers can modify the short to tall bar ratio using C# or VB.NET. The valid value is from 0 to 1.

POSTNET.ShortTallRatio = 0.3;

POSTNET.ShortTallRatio = 0.3
How to Generate POSTNET in Microsoft IIS with URL
  1. 1.
    Copy "barcode" folder to IIS, create a new virtual directory, and name it "barcode"
  2. 2.
    Restart the IIS, and navigate to "http://localhost/barcode/barcode.aspx?code-to-encode=01234&symbology=34"
  3. 3.
    It is allowed to customize the inserted POSTNET barcode image in the url with the http parameters
  4. 4.
    If add the created POSTNET in html or aspx pages, just copy <img src=http://localhost/barcode/barcode.aspx?code-to-encode=01234&symbology=34"/> into your web pages