Our Customers
Contact Us Email: support@barcodelib.com
Home > ASP.NET Barcode > ASP.NET Barcode Generation Guide > ASP.NET Intelligent Mail / OneCode Barcode Generating DLL
Download Barcode for ASP.NET Trial

ASP.NET OneCode Barcode Generator DLL

Guide for OneCode Barcode Generation in ASP.NET Web Applications & IIS
  • Fully built in the managed Visual C#; support .NET2.0 and later versions
  • Generate readbale OneCode barcodes in ASP.NET web and ASP.NET Class applications
  • Generate OneCode (Intelligent Mail) barcodes in Internet Information Services
  • Generate other linear and 2D barcodes in ASP.NET in addition to OneCode barcode
  • Support multiple OneCode barcode image formats (JPEG, GIF, PNG, TIFF & BMP)
  • Provide flexible size settings, such as BarWidth, BarHeight, ImageWidth & ImageHeight
  • Professional ASP.NET barcode library dll recognized by users since released
ASP.NET OneCode Barcode Image Features
Data Encoding:
Data length of Intelligent Mail Barcode is fixed (20, 25, 29 & 31) characters. OneCode barcode encodes 0-9 ten characters. Its tracking code has 20 digits including the Barcode Identifier, Service Type Identifier, Mail Identifier and Serial Number fields. Its routing code can be 0, 5, 9, or 11 digits.
Size setting:
Intelligent Mail Barcode barcode consists of 65 bars and 64 spaces. Its barcode height should be 0.125 to 0.165 inch and barcode width should be 0.015 to 0.025 inch per bar.
The distance from the left edge of the 1st bar to the left edge of the 65th bar shall never be less than 2.667 inches or greater than 3.225 inches.
Vertical quiet zones shall be 0.028 inch at least. Left and right quiet zone should be 0.125 inch at least.
Create OneCode Barcode by Dragging ASP.NET Library
  1. First of all, you should create a web form project in your Visual Studio.
  2. Then, you need to add BarcodeLib.Barcode.ASP.NET DLL to the Toolbox and you will find four items from BarcodeLib (QRCodeASPNET, PDF417ASPNET, DataMatrixASPNET and LinearASPNET).
  3. After that, you can copy "linear.aspx" and "linear.aspx.cs" to your project folder.
  4. It is indispensable to drag and drop LinearASPNET to your project as well as choose OneCode in Type item under Properties window.
  5. You can also change other properties of Intelligent Mail Barcode in Properties window based on your requirements.
  6. Finally, you will see the generated barcode image on your web page after debugging.
Stream OneCode in ASP.NET Using C# & VB.NET Codes
  1. First of all, you should add reference (BarcodeLib.Barcode.ASP.NET DLL) to your ASP.NET project.
  2. Then, write the following sample codes in your ASP.NET class.
Create C#.NET OneCode barcode in ASP web applications
     BarcodeLib.Barcode.Linear onecode = new BarcodeLib.Barcode.Linear();
onecode.Type = BarcodeType.ONECODE;
onecode.Data = "12345678998745625478";
onecode.AddCheckSum = false;

onecode.UOM = UnitOfMeasure.PIXEL;
onecode.BarWidth = 2;
onecode.ImageWidth = 300;
onecode.ImageHeight = 40;

onecode.ImageFormat = System.Drawing.Imaging.ImageFormat.Tiff;

//save barcode image into your system;
Create VB.NET OneCode barcode in ASP web applications
     Dim onecode As New BarcodeLib.Barcode.Linear()
onecode.Type = BarcodeType.ONECODE
onecode.Data = "12345678998745625478"
onecode.AddCheckSum = False

onecode.UOM = UnitOfMeasure.PIXEL
onecode.BarWidth = 2
onecode.ImageWidth = 300
onecode.ImageHeight = 40

onecode.ImageFormat = System.Drawing.Imaging.ImageFormat.Tiff

'save barcode image into your system
Generate OneCode Barcode in Internet Information Services (IIS)
  1. Download the free trial package from our website and unzip it.
  2. Copy "barcode" folder in the package to your IIS folder.
  3. Create a new virtual directory in your IIS and name it as barcode.
  4. Link the virtual directory to the above "barcode" folder.
  5. Restart your IIS and navigate to:
All Supported ASP.NET Barcode Symbologies
Support Linear Barcodes:
Support Matrix Barcodes:
All 2D Barcodes: Data Matrix, PDF 417, QR Code.

Other Related Barcode Generation Articles

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