.NET Barcode Generator Guide & Tutorial



.NET Barcode is a mature, easy to use .NET barcode generator component (.NET dll Class Library) which lets you to easily and simply draw, generate, and create linear & 2D bar codes in your .NET projects.

Download Free Evaluation version of .NET Barcode Suite



 

How to generate barcode in .NET class?
First add OnBarcode.Barcode.WinForms.dll or OnBarcode.Barcode.ASPNET.dll to .net project reference

Linear barcode = new Linear();
barcode.Type = BarcodeType.CODE39;
barcode.Data = "0123456789";
barcode.drawBarcode("C://code39.gif");

Barcode Code-39
How to generate barcode image in html or aspx pages?
  • 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 generate 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 create barcodes to image file?
Linear barcode = new Linear();
barcode.Type = BarcodeType.CODE39;
barcode.Data = "0123456789";
barcode.drawBarcode("C://code39.gif");
How to create barcode in the memory?
Please call one of the following methods to create barcode in the memory

public void drawBarcode(Graphics graphics);

public void drawBarcode(string filename);

public Bitmap drawBarcode();

public void drawBarcode(Stream fileStream);
How to create barcodes using .NET Barcode Generator Windows Form Controller?
  1. Add OnBarcode.Barcode.WinForms.dll to .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.WinForms.dll

    3. After selection, you will find four items under "Components" section: LinearWinForm, DataMatrixWinForm, PDF417WinForm, and QRCodeWinForm.
How to create barcodes using ASP.NET Barcode Generator 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.

.NET Barcode Generator Supporting Barcode Symbology Types


(Click to view each barcode type property settings)







Barcode Generation Guide for .NET / Java Developers

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

Java Barcode Generation