C# Barcode Generator SDK Tutorial
Generate, create linear, 2d barcode images in C#.NET application
Download .NET Barcode Generator Free Evaluation
Purchase .NET Barcode Generator Suite License
"It works well throughout my whole project. And barcoding features are easy to be implemented with the help of guide documents."
- Kevin Cox, US

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 to choose the right barcode generation component for integration in your C# applications.

C# Barcode Scanners

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

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#.NET Barcode Generator Quick Start
Top

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?

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

Barcode Code-39

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

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

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 the data mode (Data Matrix Barcode Settings)
    // Draw and print created Data Matrix to gif image file
    datamatrix.ImageFormat = System.Drawing.Imaging.ImageFormat.Gif;
    datamatrix.drawBarcode("C://csharp-data-matrix.gif");

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

    // Create PDF417 object
    PDF417 pdf417 = new PDF417();
    // Set Data Matrix data to encode
    pdf417.Data = "PDF-417";
    // Set PDF-417 data mode (PDF-417 Barcode Settings)
    pdf417.DataMode = PDF417DataMode.Auto;
    // Set PDF-417 number of rows
    pdf417.RowCount = 3;
    // Set PDF-417 number of columns
    pdf417.ColumnCount = 5;
    // Draw and print generated PDF417 to gif image file
    pdf417.ImageFormat = System.Drawing.Imaging.ImageFormat.Gif;
    pdf417.drawBarcode("C://csharp-pdf417.gif");

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

    // Create linear barcode object
    Linear barcode = new Linear();
    // Set barcode symbology type to Code-39
    barcode.Type = OnBarcode.Barcode.BarcodeType.CODE39;
    // Set barcode data to encode
    barcode.Data = "0123456789";
    // Encode barcodes to other image format, by change file extension
    barcode.Format = System.Drawing.Imaging.ImageFormat.Gif;
    barcode.drawBarcode("C://csharp-barcode-code39.gif");
C#.NET Barcode Generation Guides & Tutorials for Each Barcode
Top

Barcode Control for C#.NET - Bar Code Type Generation

OnBarcode is a market-leading provider of barcode imaging 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 comprehensive tutorials and how-tos for various linear, 2d barcode information, such as C# in ASP.NET, C# .NET, C# Barcode Encoding, C# Barcode Image, VB.NET in ASP.NET, VB.NET Winforms, VB.NET Barcode Encoding, VB.NET Barcode Image, Java JSP Servlet. OnBarcode barcode products are supported by RasterEdge high quality .NET Imaging SDK, Java Imaging Library, and their easy and simple documents, like imaging in C#, imaging in VB.NET, PDF in C# and PDF in VB.NET.
Terms of Use | Privacy Policy
Copyright © OnBarcode.com . All rights reserved.