Tutorial on how to create and display 1D/2D barcode image in ASP.NET web applications
Barcode Component for ASP.NET Manual & Guide
  • High quality linear and 2D barcodes generated in ASP.NET Web Form
  • Support barcode generation in IIS using URL
  • Easily integrate this barcode SDK into VB.NET, C#.NET, Managed C++ and Borland Delphi for .NET
Barcode ASP.NET > Barcode in ASP.NET
Barcode Generation in ASP.NET Applications Manual
Avapose.Barcode Generator for ASP.NET is an easy-to-use and powerful barcode control & SDK to integrate major linear and 2D barcodes into ASP.NET web applications saved as image in multiple image formats such as GIF, TIFF, BMP, PNG and JPEG.
Avapose.Barcode Library for ASP.NET is a strong named assembly (DLL) which is completely developed in .NET Framework 2.0/3.0/3.5 and advanced version in Visual Studio 2005/2008/2010 for ASP.NET web applications. The source code of this component is also provided.
Barcode generation in ASP.NET Web Form is in high flexibility and customization. Barcode parameters are pre-configured for easy generation. Barcode symbol generated allows parameters to be changed to make required barcode.
Barcode Generator Control for ASP.NET - Supported Symbologies
2D Barcodes:
QR Code

PDF 417 Data Matrix
1D Barcodes:
Codabar Code 11 Code 25 Code 39 Code 93
Code 128 EAN 8 EAN 13 EAN 128 Identcode
Onecode Interleaved 25 ISBN ISSN ITF-14
Leitcode MSI PLANET POSTNET RM4SCC
UPC-A UPC-E
ASP.NET Barcode Creator Component - Installation Requirements

Requirements:

  • Windows XP, Windows Vista and Windows 7
  • .NET 2.0, 3.0 and advanced version
  • Microsoft Visual Studio 2005/2008/2010
  • Any development that supports ASP.NET web form

Setup Process:

  1. Download.NET Barcode for ASP.NET and unzip it;
  2. Add ASP.NET Barcode Control to your ASP.NET projects;
  3. Add ASP.NET Barcode Class Library to your project reference;
Barcode Making API for ASP.NET Applications - Barcode Generation

Drag and drop bar code image to web forms applications in ASP.NET projects

Add ASP.NET barcode control to your ASP.NET projects:
  1. Add Avapose.linearbarcode.aspnet.dll/Avapose.matrixbarcode.aspnet.dll to your project;
    (Do not copy the DLL to the bin directory, Visual Studio will do so automatically)
  2. Open your Visual Studio, right click on the "Toolbox", and select "Choose Item";
  3. Click "browse" in the ".NET Framework Component" tab, find Avapose.linearbarcode.aspnet.dll/Avapose.matrixbarcode.aspnet.dll, and click "OK". You will find LinearWebControl/MatrixWebControl in the Toolbox;
  4. Go to "Barcode" folder in the trial package, copy files "linear.aspx" and "linear.aspx.cs", /"matrix.aspx" and "matrix.aspx.cs" to the project where aspx barcodes are generated;
  5. Drag and drop a LinearWebControl/MatrixWebControl to your aspx page, and debug it. A barcode is generated in the web browser;
  6. Change properties through property window.

Generate and print barcodes in an image in ASP.NET applications with C# and VB.NET

Add ASP.NET Barcode Class Library to your project reference:
  1. Download Avapose ASP.NET barcode trial and unzip;
  2. Add Avapose.linearbarcode.aspnet.dll/Avapose.matrixbarcode.aspnet.dll to your project. Do not copy the DLL to the bin directory, Visual Studio will do so automatically;
  3. Open your Visual Studio. In the "Solution Explorer", add Avapose.linearbarcode.aspnet.dll/Avapose.matrixbarcode.aspnet.dll to your reference.
  4. Go to "Barcode" folder in the trial package, copy files "linear.aspx" and "linear.aspx.cs", /"matrix.aspx" and “matrix.aspx.cs” to the project where aspx barcodes are generated;
  5. Right click on the "Default.aspx" and select "View Code";
  6. Copy those following sample accordingly and debug it, you will find a barcode generated in you ASP.NET projects.

C# code

using Avapose.linearbarcode;
Linear barcode = new Linear();
barcode.LinearBarcode = LinearBarcode.Code39;
barcode.BarcodeData = "0123456789";
barcode.ApplyTilde = true;
barcode.MeasurementUnit = MeasurementUnit.Pixel;
barcode.HoriBarAlignment = HoriBarAlignment.Center;
barcode.ResizeBarcode = false;
barcode.BarWidth_X = 2;
barcode.BarHeight_Y = 50;
barcode.Resolution = 96;
barcode.Rotation = Rotation.Degree0;
barcode.ImageFormat = System.Drawing.Imaging.ImageFormat.Gif;
barcode.DrawBarcodeImage("c:/code39-csharp.gif");

VB code

Dim barcode As Avapose.linearbarcode.Linear = New Avapose.linearbarcode.Linear()
barcode.LinearBarcode = Avapose.linearbarcode.LinearBarcode.Code39
barcode.BarcodeData = "0123456789"
barcode.ApplyTilde = True
barcode.MeasurementUnit = Avapose.linearbarcode.MeasurementUnit.Pixel
barcode.HoriBarAlignment = Avapose.linearbarcode.HoriBarAlignment.Center
barcode.ResizeBarcode = False
barcode.BarWidth_X = 2
barcode.BarHeight_Y = 50
barcode.ImageFormat = System.Drawing.Imaging.ImageFormat.Gif
barcode.DrawBarcodeImage("c:/code39-csharp.gif")

Add barcode generation functionality to IIS in ASP.NET web applications

  1. Download Barcode Generator for ASP.NET and unzip;
  2. Create file Directory barcode in Internet Information Services (IIS);
  3. Restart IIS, and navigate to
    http://localhost/barcode/matrix.aspx?barcode-data=Data-Matrix&matrix-barcode=1;
  4. Now a Data Matrix is generated, you can change barcode type and barcode properties accordingly;
  5. To add the created barcode images in html or aspx pages, simply insert the following image tag into your web pages:< img src=http://localhost/barcode/matrix.aspx?barcode-data=Data-Matrix&matrix-barcode=1/">
Testimonial for Avapose.Barcode for ASP.NET
We bought your Barcode Generator for ASP.NET a few weeks ago, and it works pretty well
Carios Louis, Eureka Software Ltd,UK