C# Barcode Generator SDK Tutorial - Generate, create linear, 2d barcode images in C#.NET application

Generate, Create, Print, Draw linear, 2d bar codes in C#.NET projects






Generating barcodes in C#.NET is an easy task with OnBarcode .NET Barcode Generator Components. OnBarcode provides various barcode libraries and controls for generating barcodes using Microsoft Visual C#.NET on ASP.NET, C# Class, Windows software, Console applications, and .NET Reporting projects. You can also use our .NET Barcode Reader SDK to read and scan barcodes in C#.

This article helps you how to choose the right barcode generation component and integrate in your C# applications.

C# Barcode Scanners
C# 2d barcode scanners: Data Matrix Scanner, PDF-417 Scanner, QR Code Scanner.
C# linear barcode scanners: Code 39 Scanner, Code 128 Scanner, EAN 8 Scanner, EAN 13 Reader, GS1 128 (UCC/EAN128) Reader, UPC-A Reader, UPC-E Reader.

Compare THREE .NET Barcode Generator components in different C#.NET development environments

         ASP.NET Barcode Generator

  • Generate barcodes in C#.NET class

  • Generate barcodes in C# console applications

  • Generate barcodes in C# Web Forms projects

      WinForms Barcode Generator

  • Generate barcodes in C#.NET class

  • Generate barcodes in C# console applications

  • Generate barcodes in C# Windows Forms projects

         .NET Barcode Suite

  • Generate barcodes in C#.NET class

  • Generate barcodes in C# console applications

  • Generate barcodes in C# Web Forms projects

  • Generate barcodes in C# Windows Forms projects

  • Generate barcodes in C# Reporting Service 2005 & 2008 projects



C# Barcode Generator Supporting Barcode Symbology Types




C#.NET Barcode Generator Quick Start

1. How to install .NET Barcode Generator Control to your Visual C# project?

Add OnBarcode.Barcode.WinForms.dll or OnBarcode.Barcode.ASPNET.dll to C# project reference

2. How to create linear barcodes in C# class?

Linear barcode = new Linear();                 // Create linear barcode object  
barcode.Type = BarcodeType.CODE39;	       // Set barcode symbology type to Code-39
barcode.Data = "0123456789";                   // Set barcode data to encode
barcode.X = 1;                                 // Set barcode bar width (X dimension) in pixel
barcode.Y = 60;                                // Set barcode bar height (Y dimension) in pixel
barcode.drawBarcode("csharp-code39.png");      // Draw & print generated barcode to png image file

Barcode Code-39

3. How to draw & print QR-Code in C# class?

QRCode qrCode = new QRCode();                  // Create QRCode object                  
qrCode.Data = "VB.NET QRCode";                 // Set QR Code data to encode
qrCode.DataMode = QRCodeDataMode.Auto;         // Set QRCode data mode (QR-Code Barcode Settings)
qrCode.drawBarcode("csharp-qrcode.jpg");       // Draw & print generated QR Code to jpeg image file

4. How to create & print Data Matrix in C# class?

DataMatrix datamatrix = new DataMatrix();             // Create Data Matrix object
datamatrix.Data = "VB.NET DataMatrix";                // Set Data Matrix data to encode
datamatrix.DataMode = DataMatrixDataMode.ASCII;       // Set Data Matrix data mode 
                                                      // (Data Matrix Barcode Settings)
datamatrix.drawBarcode("csharp-data-matrix.gif");     // Draw & print generated Data Matrix to gif image file

5. How to create & print PDF-417 in C# class?

PDF417 pdf417 = new PDF417();                // Create PDF417 object  
pdf417.Data = "VB.NET PDF-417";              // Set Data Matrix data to encode
pdf417.DataMode = PDF417DataMode.Auto;       // Set PDF-417 data mode (PDF-417 Barcode Settings)
pdf417.RowCount = 3;                         // Set PDF-417 number of rows
pdf417.ColumnCount = 5;                      // Set PDF-417 number of columns
pdf417.drawBarcode("csharp-pdf417.gif");     // Draw & print generated Data Matrix to gif image file

6. In C# Barcode Generator, how to print & encode barcodes to GIF, JPEG, PNG & BMP?

Linear barcode = new Linear();                 // Create linear barcode object  
barcode.Type = OnBarcode.Barcode.BarcodeType.CODE39;
barcode.Data = "0123456789";

// Encode barcodes to other image format, by change file extension
barcode.drawBarcode("C://csharp-barcode-code39.gif");








Barcode Generation Guide for .NET / Java Developers

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

Java Barcode Generation

OnBarcode is a market-leading provider of barcode generator, reader controls and components for ASP.NET, Windows Forms, WPF, as well Java, Android, iOS (iPhone, iPad) across all major enterprise development platforms. We provides high quality tutorials and guides for various linear, 2d barcode information, such as C# Barcode, QR Code C#, QR Code VB.NET, QR Code ASP.NET, QR Code .NET, ASP.NET Barcode. OnBarcode products support most common barcode symbologies including QRCode C# SDK, Data Matrix in C#.net Control, PDF-417 Componennt in C# .NET, Code 128 VS .net sdk, Code 39 C# library.
Terms of Use | Privacy Policy
Copyright © OnBarcode.com . All rights reserved.