Barcoding  >  .NET Barcode for C# on WinForms  >  C# Barcode Generator


C# Barcode Generation Tutorial

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

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


Overview

Keepdynamic.com supply C# .NET Barcode Generator for the creation of 1D&2D (two dimensional) barcodes in your C# .NET framework projects. Barcodes of linear & Matrix can be created by our C# .NET Barcode Generator 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


Features

Technologies of Barcode C#.NET Creator

C# .NET Barcode Creator helps you generate most common linear and matrix barcodes that you probably need in your C# .NET applications. It is entirely built in .NET 2.0 and supports .NET 2.0, 3.0, 3.5, 4.0. Bar coding in C# .NET classes and console applications is easy. Using this C# .NET Barcode Creator, barcodes can also be easy to be generated in ASP.NET web projects, Microsoft Windows Forms, SQL Server Reporting Services (SSRS), and Crystal Reports.

Barcode images generated by C#.NET Barcode Creator

Image formats supported by this C#.NET barcode Creator include gif, jpeg, png, bmp, and tiff. Barcodes can be rotated to 0, 90, 180, or 270 degrees based on specific requirements. The image size and other properties may be adjusted to meet the usersĄŻ specifications. High quality barcodes are supported by this product without any distortion.

Customization of C#.NET Barcodes

Full functional features of C# .NET Barcode Creator make the operation of barcode easy and simple. Using this creator, the appearance of the human readable characters on linear barcodes can be enabled or disabled. The checksum character that encoded in linear barcodes can be displayed for human reading. C# .NET Barcode Creator provided the functionality of configuring the colors of foreground and background. It is easy to encode the returns, tabs and other functions into your C# .NET applications. Bearer bar is also easy to be generated for linear barcodes including ITF.

C#.NET Source code and Developer License

Complete C# .NET Barcode Creator source code is provided with the purchasing of unlimited developer license. Royalty is free if purchasing a developer license.

How to generate linear (1D) barcodes in C#.NET Class?

The following C# .NET code illustrates how to generate a linear 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 Data Matrix barcodes in C#.NET Class?

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

using KeepDynamic.Barcode.Generator;

// Create Data Matrix barcode object in C#
DataMatrix barcode = new DataMatrix();

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

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

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


How to generate PDF-417 barcodes in C#.NET Class?

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

using KeepDynamic.Barcode.Generator;

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

// Set PDF-417 barcode value in C#
barcode.CodeText = "PDF417 in C#";

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

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


How to generate QR-Code barcodes in C#.NET Class?

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

using KeepDynamic.Barcode.Generator;

// Create QR-Code barcode object in C#
QRCode barcode = new QRCode();

// Set QR-Code barcode value in C#
barcode.CodeText = "QRCode in C#";

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

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


Creating barcodes using .NET Barcode Generator Windows Form Control

To create barcodes in C# Windows Forms applications, do the following procedures:

  • Add KeepDynamic.BarCode.Windows.dll to your C# 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 C# ASP.NET Web Forms applications, do the following procedures:

  • Add KeepDynamic.BarCode.AspNet.dll to your C# 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