.NET Barcode for (.NET Barcode Generator supports Linear, PDF417, Data Matrix and QR-Code)

.NET Barcode Generator  >  J# Barcode Generation Guide  >  J# Code 2 of 5 Generation Guide

J# Code 2 of 5 Generation Guide

Guide for Code 2 of 5 Generation in Visual J#. 2005


  • Simple to integrate with your J# Applications
  • Easy to draw Code 2 of 5 with .NET Design View Barcode Control
  • Rich Code 2 of 5 settings to customize your generating barcodes
  • Minimum Code 2 of 5 knowledge required, with complete developer guides
  • Easy to generate Code 2 of 5 with comprehensive J# sample codes
  • Support more 2 of 5 Symbologies: Interleaved 2 of 5 Generation in J#, Identcode Generation in J#, Leitcode Generation in J#, & ITF-14 Generation in J#
  • Mature and reliable J#.NET Barcode components since 2003
  • Royalty free with Developer License purchased


Code 2 of 5 Overview

Encodable Character

  • Numeric Character: 0, 1, 2, 3, 4, 5, 6, 7, 8, 9

Encodable Data Length

  • Variable


Code 2 of 5 Generator in J#.NET - FAQ

1. How to generate Code 2 of 5 bar code image using Code 2 of 5 Generator in J#.NET in J#.NET Class?

            using BusinessRefinery.Barcode;

            Linear barcode = new Linear();
            barcode.Type = BarcodeType.CODE2OF5;
            barcode.Code = "9876543210";
            barcode.drawBarcode("C://code-2-of-5-in-jsharp.gif");

2. How to stream Code 2 of 5 to image files?

            using BusinessRefinery.Barcode;

            Linear barcode = new Linear();
            barcode.Type = BarcodeType.CODE2OF5;
            barcode.Code = "9876543210";
            barcode.drawBarcode("C://code-2-of-5-in-jsharp.png");
You can also create Codabar to GIF, JPEG, & BMP image formats besides PNG

3. How to install Code 2 of 5 Generator in J#.NET Windows Control Library?

  1. Add BusinessRefinery.Barcode.WinForms.dll to your .NET Windows Application project reference
  2. Add .NET Barcode Generator .NET Windows Control Library to .NET Visual Studio Toolbox

4. How to install Code 2 of 5 Generator in J#.NET Web Control Library?

  1. Add BusinessRefinery.Barcode.ASPNET.dll to your ASP.NET project reference
  2. Add ASP.NET Barcode Generator ASP.NET Web Control Library to .NET Visual Studio Toolbox

5. How to generate Code 2 of 5 in ASP.NET Web Application using .NET Barcode Generator Streaming Functions?

  1. Copy the folder barcode under evaluation package with contents to your IIS web server
  2. Create a new virtual directory named "barcode"in your IIS web server.
  3. Restart IIS web server, open your web browser and navigate to http://project-url/barcode/linear.aspx?code=0123456789&symbology=2
  4. To create Code 2 of 5 image to your html or aspx pages, you can insert an image tag (img) into your web page.
    For example, <img src="ttp://project-url/barcode/linear.aspx?code=0123456789&symbology=2" />


Code 2 of 5 Generator Component for .NET Framework



BusinessRefinery provides 3 mature .NET Barcode Generation Components to generate Code 2 of 5 in J#.NET projects:

.NET Barcode for ASP.NET - enable barcode generation in J# class, J# console applications, and J# ASP.NET web projects.

.NET Barcode for Windows Forms - enable barcode generation in J# class, J# console applications, and J#.NET Windows applications.

.NET Barcode Ultimate - integrates all features in the above two controls.



More Barcodes





ALL RIGHTS RESERVED. Business Refinery (c) 2006 - 2014. Our Document Image Partner RasterEdge provides VB.NET PDF HTML5 Viewer, VB.NET Convert PDF to Tiff, VB.NET PDF Read, VB.NET Convert PDF to Text, txt, C# HTML5 Document Viewer, VB.NET Convert PDF to SVG, VB.NET PDF Annotate & Comment, VB.NET pdf extract pages, VB.NET PDF SDK from RasterEdge.com.