KA.Barcode for .NET Suite
How to Generate Code 2 of 5 in C# application
How to generate & draw Code 2 of 5 barcode images in C#, ASP.NET web applications, and windows forms

C# barcode generator dll: create, printing Code 2 of 5 linear barcode using C#.NET in ASP.NET, WinForms applications



  • Code 2 of 5 generation in C# .NET applications
  • Easy-to-use & integrate controls completely written in managed C#
  • Generate Code 2 of 5 and other linear & 2D barcodes in C# class, such as Identcode, UPC-E, Data Matrix/li>
  • Draw Code 2 of 5 in C# ASP.NET web forms
  • Create Code 2 of 5 in .NET Windows Forms applications
  • Generate Code 2 of 5 in stream object, in graphics object, and image formats
  • Print and save Code 2 of 5 as gif, jpeg, png, tiff, and bitmap files using C#
Code 2 of 5, is also named as two-out-of-five code, 2 of 5 Industrial, 2/5 Industrial, 2 of 5 Standard, Standard 2 of 5, 2/5 Standard Code 2/5, 2 of 5 Barcode.

barcode 2d crystal report free, c# upc check digit, qr code crystal reports 2008, code 39 c#, rdlc barcode font, barcode in c# windows application

C# Code 2 of 5 barcode generator is a .NET Code 2 of 5 generation function of KeepAutomation .NET Barcode Suite, a high quality barcode generator component which enables you to easily and efficiently generate Code 2 of 5 and other linear & 2D barcode types in various .NET development environments, such as Windows Forms and ASP.NET, etc.

visual basic barcode scanner input, c# barcode reader source code, barcode generator in c# windows application free, free barcode generator in asp.net c#, c# generating barcode, barcode generation in vb net

With .NET Barcode Generator Suite you can instantly generate and save Code 2 of 5 in a variety of image formats in C# program, including PNG, BMP, GIF, JPEG, TIFF and so on. For more details about Code 2 of 5 C# Generation, please refer to:

Code 2 of 5 Barcode Solutions

Besides C# .NET Code 2 of 5 Generator, KeepAutomation provides other advanced Code 2 of 5 barcode solutions, including

VB.NET Code 2 of 5 Generator - generating code 2 of 5 in VB.NET

Reporting Services Code 2 of 5 - generating code 2 of 5 in Reporting Services 2005, 2008

Android Code 2 of 5 Generator - creating code 2 of 5 barcode in Android

iPhone Code 2 of 5 Generator - printing code 2 of 5 barcode in iPhone

Code 2 of 5 Barcode Fonts - creating code 2 of 5 in barcode fonts

Apart from Code 2 of 5, .NET C# Barcode Generator also supports other linear and 2D barcode symbols, including: C# EAN-8, C# Interleaved 2 of 5, C# Code 39, C# leitcode, C# QR Code, etc.

How to Generate Code 2 of 5 in Visual C# Applications?

How to Install Barcode Control

  • Download KeepAutomation C# Code 2 of 5 Generator

  • Add "KeepAutomation.Barcode.Web.dll" or "KeepAutomation.Barcode.Windows.dll" to your C# project reference.

    1. "project" - "Add Reference" - choose "Browse" in the pop-up window
    2. locate your "KeepAutomation.Barcode.Web.dll" or "KeepAutomation.Barcode.Windows.dll" - click "OK"
    3. Now you will see "KeepAutomation.Barcode.Web" or "KeepAutomation.Barcode.Windows" under your references.

How to Generate Code 2 of 5 in C# Class

        using KeepAutomation.Barcode.Bean;     
        BarCode code2of5= new BarCode(); 
         
        //Set barcode symbology type to Code 2 of 5              
        code2of5. Symbology = Symbology. Code2of5;  
        
        //Set Code 2 of 5 encoding code value. Valid input: numeric digits 0-9. Length: variable.     
        code2of5.CodeToEncode = "147";    
        
        //Set Code 2 of 5 image size
        
        code2of5.BarcodeUnit = BarcodeUnit.Pixel;  // Unit of measure, Pixel, Cm and Inch supported. 
        code2of5.DPI = 72;                         // Code 2 of 5 image resolution in DPI.
        code2of5.X = 2;                            // Code 2 of 5 bar module width (X dimention)
        code2of5.Y = 60;                           // Code 2 of 5 bar module height (Y dimention)
        code2of5.LeftMargin = 0;		   // Image left margin size, minimum is 10X.
        code2of5.RightMargin = 0;	           // Image right margin size, minimum is 10X.
        code2of5.TopMargin = 0;		           // Code 2 of 5 image top margin size
        code2of5.BottomMargin = 0;	           // Code 2 of 5 image bottom margin size
        code2of5.Orientation = Orientation.Degree0;// Orientation, 90, 180, 270 degrees supported.
        code2of5.WideNarrowRatio = 3.0f;           // Wide bar vs narrow bar, valid from 2.0f-3.0f.
        
        //Set Code 2 of 5 human readable text style
        
        code2of5.DisplayText = true;               // Display human readable text
        code2of5.TextFont = new Font ("Arial", 10f, FontStyle. Regular);      
        code2of5.TextMargin = 6;                   // Space between barcode and text
         
        //Generate Code 2 of 5 barcodes in image GIF format
        code2of5.generateBarcodeToImageFile("barcode-code25-csharp.gif");  
        
        //Create Code 2 of 5 barcodes in Stream object
        code2of5.generateBarcodeToStream(".NET System.IO.Stream Object"); 
        
        //Draw & Print Code 2 of 5 barcodes to Graphics object
        code2of5.generateBarcodeToGraphics(".NET System.Drawing.Graphics Object");
        
        //Generate Code 2 of 5 barcodes & write to byte[] 
        byte[] barcodeInBytes = code2of5.generateBarcodeToByteArray();
        
        //Generate Code 2 of 5 barcodes & encode to System.Drawing.Bitmap object 
        Bitmap barcodeInBitmap = code2of5.generateBarcodeToBitmap();
        
        Other image formats including Png, Bmp, Tiff and Jpeg are also available to suit your needs.