KA.Barcode for .NET Suite
How to Generate Interleaved 2 of 5 in .NET Application
How to generate & create Interleaved 2 of 5 linear barcodes in ASP.NET, WinForms, C#, VB.NET class
  • Create, print Interleaved 2 of 5 bar codes in Bmp, Gif, Jpg, Png, Tiff image formats and save to disk
  • Support Interleaved 2 of 5 barcode generation and other linear, matrix barcode types
  • Compatible with Microsoft Visual Studio 2005 and above versions
  • Written in Visual C#.NET managed code with full integration into .NET Framework
  • Allows optional checksum digit calculation features for Interleaved 2 of 5
  • All Interleaved 2 of 5 barcode parameters are adjustable, like module width, rotation, resolution, etc
  • Mature and easy to use barcode solution for .NET developers
KA.Barcode for .NET consists of ASP.NET web control dll and .NET WinForms component class library, which efficiently enables users to generate high-quality linear barcode Interleaved 2 of 5 in types of .NET projects including ASP.NET web site, windows applications, Crystal Reports, SSRS, Visual C# & VB.NET class, and .NET console applications.
Interleaved 2 of 5 Generation in .NET Applications
Interleaved 2 of 5 is a continuous two-width barcode symbology used commercially on 135 films. It is also used for ITF-14 barcodes, and on cartons of some products, while the products inside are labeled with UPC or EAN.

Interleaved 2 of 5 Encodable Character Set

  • Numeric digits 0-9

Interleaved 2 of 5 Data Length

  • Variable
Interleaved 2 of 5 Generation in .NET Applications
Above all, please download KA.Barcode for .NET Suite and unzip.

How to Drag & Drop Barcode Control to Generate Interleaved 2 of 5

  1. 1.
    Open your .NET Project with Visual Studio, and right-click "Choose Items..."
  2. 2.
    Browse and select "KeepAutomation.Barcode.Windows.dll" or "KeepAutomation.Barcode.Web.dll"
  3. 3.
    Add "BarCodeControl" to Visual Studio "Toolbox"
  4. 4.
    Drag and drop the "BarCodeControl" from the "Toolbox" onto your forms
  5. 5.
    Select the barcode on the form, switch to the Properties Window, and set "Symbology" property to "Interleaved2of5"

How to Generate Interleaved 2 of 5 in C#, VB.NET Class Library

Switch to the Visual Studio Solution Explorer window, and add "KeepAutomation.Barcode.Windows.dll" or "KeepAutomation.Barcode.Web.dll" to as reference of the project. Then copy the following C# or VB.NET to where the Interleaved 2 of 5 is generated.
using KeepAutomation.Barcode.Bean;

BarCode interleaved2of5 = new BarCode();
interleaved2of5.Symbology = KeepAutomation.Barcode.Symbology.Interleaved2of5;
interleaved2of5.CodeToEncode = "2525";
Dim interleaved2of5 As KeepAutomation.Barcode.Bean.BarCode = New KeepAutomation.Barcode.Bean.BarCode

interleaved2of5.Symbology = KeepAutomation.Barcode.Symbology.Interleaved2of5
interleaved2of5.CodeToEncode = "2525"

How to Customize Interleaved 2 of 5 Wide Bars

The width of the wide bars in Interleaved 2 of 5 could be adjusted using the WideNarrowRatio property. The value of WideNarrowRatio is the ratio that wide bar width is to narrow bar width.

interleaved2of5.X = 1;
interleaved2of5.WideNarrowRatio = 2.0f;
interleaved2of5.X = 1
interleaved2of5.WideNarrowRatio = 2.0f
How to Generate Interleaved 2 of 5 in Microsoft IIS
  1. 1.
    Copy the "barcode" folder from the unzipped folder to IIS web application folder
  2. 2.
    Create a virtual directory named "barcode", then link it to the "barcode" folder in web application folder
  3. 3.
    Testing: Open your web browser, and navigate to "http://localhost/barcode/barcode.aspx? code-to-encode=2525&symbology =3&x=1&barcode-width=150"
  4. 4.
    Adding Interleaved 2 of 5 to web page: insert the following tag onto your web pages
    < img src="http://localhost/barcode/barcode.aspx? code-to-encode =2525&symbology =3&x=1&barcode-width=150"/>