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.
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;
BarCode barcode = new BarCode();
barcode.SymbologyType = SymbologyType.Code128;
barcode.CodeText = "Code128";
barcode.Format = ImageFormat.Png;
barcode.drawBarcode("C://barcode-code128-csharp.png");
barcode.drawBarcode("Graphics object");
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;
DataMatrix barcode = new DataMatrix();
barcode.CodeText = "Data Matrix in C#";
barcode.Format = ImageFormat.Png;
barcode.drawBarcode("C://barcode-datamatrix-csharp.png");
barcode.drawBarcode("Graphics object");
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;
PDF417 barcode = new PDF417();
barcode.CodeText = "PDF417 in C#";
barcode.Format = ImageFormat.Png;
barcode.drawBarcode("C://barcode-pdf417-csharp.png");
barcode.drawBarcode("Graphics object");
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;
QRCode barcode = new QRCode();
barcode.CodeText = "QRCode in C#";
barcode.Format = ImageFormat.Png;
barcode.drawBarcode("C://barcode-qrcode-csharp.png");
barcode.drawBarcode("Graphics object");
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
C#.NET Barcode Generator supports most common linear (1d) and matrix (2d) bar code standards, including: