Our Customers
Contact Us Email: support@barcodelib.com
Home > ASP.NET Barcode > ASP.NET Barcode Generation Guide > ASP.NET POSTNET Barcode Generation Tutorial
Download Barcode for ASP.NET Trial

ASP.NET Web POSTNET Barcode Generator DLL

Tutorial for POSTNET Barcode Generation in ASP.NET Web Applications
  • Generate ASP.NET POSTNET barcode image in C#.NET and VB.NET classes
  • Generate and stream standard compatible POSTNET barcode image in ASP.NET applications
  • Generate and print POSTNET barcode image in ASP.NET Crystal Reports
  • Generate POSTNET barcode to Bitmap object, HttpResponse object etc
  • Comprehensive and reliable ASP.NET POSTNET barcode dll recommended by 1000+ developers
  • Royalty-free for the purchase of several kinds of developer licenses, via online or offline payment methods
ASP.NET POSTNET Barcode Overview
The POSTNET (POSTal Numeric Encoding Technique) barcode was developed by the US Postal Service for the purpose of encoding ZIP Code information on letter mail so that BCSs can sort letters rapidly and accurately. The POSTNET barcode can represent a five-digit ZIP Code (32 bars), a nine-digit ZIP+4 code (52 bars), or an eleven-digit delivery point code (62 bars).
Generate POSTNET Barcode in ASP.NET Applications Through Control
Drag and drop POSTNET barcode generator control to ASP.NET web project
  1. Download and unzip the trial package of ASP.NET POSTNET Barcode Generator.
  2. Open your Visual Studio and add BarcodeLib.Barcode.ASP.NET DLL to the Toolbox.
  3. Go to "barcode" folder in the unzipped package to find "linear.aspx" and "linear.aspx.cs", and copy them to your project folder.
  4. Drag and drop LinearASPNET to your Visual ASP.NET project.
  5. Select POSTNET in Type item under Properties window.
  6. Reset other properties of POSTNET in Properties window and debug.
Generate ASP.NET POSTNET Barcode in .NET Class & IIS
Generate C# POSTNET barcode image in ASP.NET applications
You need to add BarcodeLib.Barcode.ASP.NET DLL to your ASP.NET project reference and compile the following C# demo codes.
     BarcodeLib.Barcode.Linear postnet = new BarcodeLib.Barcode.Linear();
postnet.Type = BarcodeType.POSTNET;
postnet.Data = "19861";

postnet.UOM = UnitOfMeasure.PIXEL;
postnet.BarWidth = 1;
postnet.BarHeight = 80;
postnet.ImageWidth = 120;
postnet.ImageHeight = 120;
//postnet.ResizeImage = true;

postnet.ImageFormat = System.Drawing.Imaging.ImageFormat.Gif;

// Save barcode image into your system
postnet.drawBarcode("c://postnet.gif");
Generate VB POSTNET barcode image in ASP.NET applications
You need to add BarcodeLib.Barcode.ASP.NET DLL to your ASP.NET project reference and compile the following VB demo codes.
     Dim postnet As New BarcodeLib.Barcode.Linear()
postnet.Type = BarcodeType.POSTNET
postnet.Data = "19861"

postnet.UOM = UnitOfMeasure.PIXEL
postnet.BarWidth = 1
postnet.BarHeight = 80
postnet.ImageWidth = 120
postnet.ImageHeight = 120
'postnet.ResizeImage = true;

postnet.ImageFormat = System.Drawing.Imaging.ImageFormat.Gif

' Save barcode image into your system
postnet.drawBarcode("c://postnet.gif")
Generate POSTNET barcode in Internet Information Services (IIS)
  1. Download and unzip the free trial package.
  2. Copy "barcode" folder in the package to your IIS folder.
  3. Create a new virtual directory in your IIS, named as barcode.
  4. Link the virtual directory to the above "barcode" folder.
  5. Restart your IIS and navigate to:
    http://YourDomain:Port/barcode/linear.aspx?Type=26&Data=19861&Barwidth=1&BarHeight=80&ImageWidth=100&ImageHeight=120&UOM=0
Complete ASP.NET Barcode Symbologies
Support Linear Barcodes:
Support Matrix Barcodes:
Complete 2D Barcodes: Data Matrix, PDF 417, QR Code.



Other Related Barcode Generation Articles

ASP.NET C# & VB.NET Barcode Generation Guide