.NET Barcode Generator SDK Tutorial
Generate, create linear, 2d barcode images in
Visual Studio .NET application
Download .NET Barcode Generator Free Evaluation
Purchase .NET Barcode Generator Suite License
"The documents provided are incredibly helpful. Really save us a lot of time. As well, cost effective!"
- Dean Harris, US

Integration Guide & Tutorial to Generate Linear, 2D Barcodes using .NET Barcode Generator

  • Generate barcode images in .NET class & console applications
  • Create linear, 2d barcodes in ASP.NET web form applications
  • Generate, draw barcodes in .NET Windows Forms applications
  • Print barcode images in SQL Server Reporting Services (SSRS)
  • Print and draw barcode images in .NET Crystal Reports
  • Completely coded in Visual Studio C# .NET
  • Compatible with latest barcode symbology ISO/IEC & GS1 Standards
  • Mature .NET barcode generating component SDK & DLL
.NET Barcode is a mature and professional .NET barcode generator component (.NET dll Class Library) which lets you easily and simply draw, generate, and create linear & 2D bar codes in your .NET projects.
Install .NET Barcode Generator Components to .NET Projects
Top
.NET Barcode Generator Components are built on C#.NET 2005. They are compatible with Microsoft C#.NET, VB.NET, Borland Delphi for Microsoft .NET, Visual Studio .NET Framework 2.0 or later versions.

Install

  1. Download the trial package and uncompress it.
  2. Copy OnBarcode.Barcode.WinForms.dll or OnBarcode.Barcode.ASPNET.dll to your .NET project folder.
    Note that you don't need to copy dll to .NET bin directory as .NET build tools will do it for you.
  3. Add OnBarcode.Barcode.WinForms.dll or OnBarcode.Barcode.ASPNET.dll to .NET project reference.

Add ASP.NET Web Form Control to ASP.NET Visual Studio Toolbox

  1. Right click .NET Visual Studio Toolbox, select menu Choose Items...
  2. In "Choose Toolbox Items" form, click button "Browse...", and select dll OnBarcode.Barcode.ASPNET.dll.
  3. After selection, you will find four items under "Components" section:LinearWebForm, DataMatrixWebForm, PDF417WebForm, and QRCodeWebForm.

Add .NET Windows Form Control to .NET Visual Studio Toolbox

  1. Right click .NET Visual Studio Toolbox, select menu Choose Items...
  2. In "Choose Toolbox Items" form, click button "Browse...", and select dll OnBarcode.Barcode.WinForms.dll.
  3. After selection, you will find four items under "Components" section:LinearWinForm, DataMatrixWinForm, PDF417WinForm, and QRCodeWinForm.
How to Generate Barcodes in C#.NET class?
Top
Generating barcodes in C# Class sample codes:
  // Create a linear object and set barcode symbology type to Code-39
Linear barcode = new Linear();
barcode.Type = BarcodeType.CODE39;

// Set barcode value
barcode.Data = "CODE39";

// Set barcode bar width (X module) and bar height (Y module)
barcode.X = 1;
barcode.Y = 60;

// Generate barcode and encode barcode to gif format
barcode.Format = ImageFormat.Gif;
barcode.drawBarcode("c#-barcode.gif");

// Print barcode to C# Bitmap object
Bitmap barcodeInBitmap = barcode.drawBarcode();
Other C# methods to generate barcodes & output to C# objects:
  public void drawBarcode(Graphics graphics);

public void drawBarcode(string filename);

public Bitmap drawBarcode();

public void drawBarcode(Stream fileStream);

More C# source code examples for common barcode types

Data Matrix in C# PDF-417 in C# QR-Code in C# Interleaved 2 of 5 in C#
Code-39 in C# Code-128 in C# GS1-128 in C# UPC-E in C#
EAN-8 in C# EAN-13 in C# UPC-A in C#
How to Generate Barcodes in VB.NET class?
Top
Generating barcodes in VB.NET Class example codes:
  // Create linear barcode object and set barcode type
Dim barcode As OnBarcode.Barcode.Linear
barcode = New OnBarcode.Barcode.Linear()
barcode.Type = OnBarcode.Barcode.BarcodeType.CODE39

// Set barcode value to encode
barcode.Data = "CODE39"

// Set barcode bar width (X module) and bar height (Y module)
barcode.X = 1
barcode.Y = 60

// Generate barcode and encode barcode to png format
barcode.Format = ImageFormat.Png
barcode.drawBarcode("vbnet-barcode.png")

// Print barcode to vb.net Bitmap object
Dim barcodeInBitmap As Bitmap
barcodeInBitmap = barcode.drawBarcode();
Other VB.NET methods to generate barcodes & output to VB.NET objects:
  Public Sub drawBarcode(ByRef graphics As Graphics)

Public Sub drawBarcode(ByVal filename As String)

Public Function drawBarcode() As Bitmap

Public Sub drawBarcode(ByRef fileStream As Stream)
How to Generate Barcode Images in HTML or ASPX Web Pages?
Top
  • Under demo package, copy barcode folder and its contents to your IIS, and create a new virtual directory.
  • Restart IIS, navigate to http://YourDomain:Port/barcode/linear.aspx?DATA=0123456789&TYPE=4.
  • To generate barcode image in html or aspx pages, you can insert a image tag (img) into your page.
    For example, <img src="http://YourDomain:Port/barcode/linear.aspx?DATA=0123456789&TYPE=4" />
Generating and Printing Barcodes in Reporting Applications
Top
.NET Barcode Generator Supporting Barcode Symbology Types
Top

Barcode Generator DLL for .NET - Bar Code Types Generation



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 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 .NET HTML5 Document Viewer high quality C# Convert PDF to Tiff, C# Convert PDF to Word, C# Convert PDF to HTML, C# Convert PDF to Jpeg images, and their easy and simple documents, like C# PDF SDK, C# extract text from PDF, C# Compress PDF, Print PDF in C# and C# extract image from PDF.
Terms of Use | Privacy Policy
Copyright © OnBarcode.com . All rights reserved.