ASP.NET Barcode Generation Guide & Tutorial



OnBarcode.com provides several barcode products and options for generating barcodes in Microsoft Visual ASP.NET. The following content helps ASP.NET developers select the best product needed.

 

.NET Barcode for ASP.NET

  • Created exclusively for ASP.NET Web Applications.

  • Written 100% in C#.NET 2005

  • Generates graphic barcode images without fonts.

  • Supports most common linear barcode types as well as 2D symbologies including Code 39, Code 128, EAN-128, EAN-8, EAN-13, UPC-A, UPC-E, Data Matrix, PDF417, and QR Code.

  • Draw barcodes to image files as well as in the memory.

ASP.NET Barcode Generator Supporting Barcode Symbology Types


(Click to view each barcode type property settings)

Using ASP.NET Barcode Generator, how to create barcodes in ASP.NET web application class?

Add OnBarcode.Barcode.ASPNET.dll to ASP.NET web project reference
Linear barcode = new Linear();
barcode.Type = BarcodeType.CODE39;
barcode.Data = "0123456789";
barcode.drawBarcode("C://csharp-barcode-code39.gif");

Barcode Code-39

How to create barcode image in ASP.NET aspx or html pages without ASP.NET Barcode Controller?

  • Under demo package, copy barcode folder and its contents to your IIS, and create a new virtual directory.

  • Restart IIS, navigate to http://YourDomain:Port/barcode/linear.aspx?DATA=0123456789&TYPE=4

  • To create barcode image in html or aspx pages, you can insert a image tag (img) into your page.
    For example, <img src="http://YourDomain:Port/barcode/linear.aspx?DATA=0123456789&TYPE=4" />

How to draw barcode using ASP.NET Barcode Web Form Controller?

  1. Add OnBarcode.Barcode.ASPNET.dll to asp.net project reference

  2. Add .NET Barcode to .NET Visual Studio Toolbox

    1. Right click .NET Visual Studio Toolbox, select menu Choose Items...

    2. In "Choose Toolbox Items" form, click button "Browse...", and select dll OnBarcode.Barcode.ASPNET.dll

    3. After selection, you will find four items under "Components" section: LinearWebForm, DataMatrixWebForm, PDF417WebForm, and QRCodeWebForm.




Barcode Generation Guide for .NET / Java Developers

.NET Barcode Generation     |     C# Barcode Generation     |     ASP.NET Barcode Generation     |     VB.NET Barcode Generation

Java Barcode Generation