Barcoding  >  .NET Barcode  >  .NET Barcode Generator


.NET Barcode Generation Tutorial

How to generate linear & 2D barcodes in .NET projects?

.NET Barcode Generator offers the most affordable .NET barcode generator for barcode .NET professionals.


How to generate barcodes in C#.NET Class?

The following C# .NET code illustrates how to generate a barcode in C# class:

using KeepDynamic.Barcode.Generator;

// Create linear barcode object in C#
BarCode barcode = new BarCode();

// Set barcode symbology type to Code-128 in C#
barcode.SymbologyType = SymbologyType.Code128;

// Set barcode value in C#
barcode.CodeText = "Code128";

// Set barcode drawing image format to PNG in C#
barcode.Format = ImageFormat.Png;

// Generate barcode & encode to the png image in C#
barcode.drawBarcode("C://barcode-code128-csharp.png");
  
// Generate barcode & print to System.Drawing.Graphics object in C#
barcode.drawBarcode("Graphics object");
 
// Create barcode & draw to System.IO.Stream object in C#
barcode.drawBarcode("Stream object");




How to generate barcodes in VB.NET Class?

The following VB.NET code illustrates how to generate barcodes in VB.NET class:

// Create linear barcode object in VB.NET
Dim barcode As KeepDynamic.Barcode.Generator.BarCode
barcode = New KeepDynamic.Barcode.Generator.BarCode()

// Set barcode symbology type to Code-128 in VB.NET
barcode.SymbologyType = SymbologyType.Code128;

// Set barcode value in VB.NET
barcode.CodeText = "Code128"

// Set barcode drawing image format to PNG in VB.NET
barcode.Format = ImageFormat.Png

// Generate barcode & encode to the png image in VB.NET
barcode.drawBarcode("C://barcode-code128-vbnet.png")
  
// Generate barcode & print to System.Drawing.Graphics object in VB.NET
barcode.drawBarcode("Graphics object")
 
// Create barcode & draw to System.IO.Stream object in VB.NET
barcode.drawBarcode("Stream object")


Creating barcodes using .NET Barcode Generator Windows Form Control

To create barcodes in C# & VB.NET Windows Forms applications, do the following procedures:

  • Add KeepDynamic.BarCode.Windows.dll to your C#, VB.NET project reference

  • Add KeepDynamic.BarCode.Windows.dll to windows project toolbox

  • Drag the one of the BarCodeControl, DataMatrixControl, PDF417Control, QRCodeControl item to your windows forms


Creating barcodes using ASP.NET Barcode Generator ASP.NET Web Form Control

To create barcodes in ASP.NET Web Forms applications, do the following procedures:

  • Add KeepDynamic.BarCode.AspNet.dll to your C#, VB.NET project reference

  • Add KeepDynamic.BarCode.AspNet.dll to windows project toolbox

  • Drag the one of the BarCodeControl, DataMatrixControl, PDF417Control, QRCodeControl item to your ASP.NET Web form pages, in your ASP.NET design view






.NET Barcode Generator supports most common linear (1d) and matrix (2d) bar code standards, including:

2D Barcodes Code-39 related Code-128 related Code-25 related EAN/UPC related Other Linear Barcodes
Data Matrix

PDF-417

QR-Code

Code-39

Code-93

Code-128

GS1-128/UCC/EAN-128
Code 2 of 5

Interleaved 2 of 5

ITF-14

Identcode

Leitcode

EAN-8

EAN-13

ISBN

ISSN

UPC-A

UPC-E
Codabar

Code-11

POSTNET

PLANET

USPS Intelligent Mail Barcode (OneCode)

RM4SCC

MSI Plessey