KA.Barcode for .NET Suite
Guide for Encoding Numeric-only Data in Interleaved 2 of 5
Complete C#.NET source code to generate, print Interleaved 2 of 5 images using Barcode Generator for .NET Control
Interleaved 2 of 5 C# Data Encoding- Overview

Besides data encoding, KeepAutomation also provides sample code for Interleaved 2 of 5 Barcode size & image setting using Visual C#.NET.

When generating an Interleaved 2 of 5 image, you need to make clear two things first:

Q1: What kind of data can be encoded into a Interleaved 2 of 5 image? Numeric or alphabetic?

A: Interleaved 2 of 5 is a numeric barcode symbology which encodes only numeric digits 0-9.

Q2: How many data digits can you input?

A: A Interleaved 2 of 5 barcode is variable-length, which means you can simply any amount of data you want.

Interleaved 2 of 5, is also named as ANSI/AIM ITF 25, USS ITF 2/5, 2 of 5 Interleaved, 2/5 Interleaved.
Interleaved 2 of 5 Comments
Encodable Character Set 0, 1, 2, 3, 4, 5, 6, 7, 8, 9
Data Length variable
Example: "2255255"



Interleaved 2 of 5 C# Data Encoding - Products

KeepAutomation.com provides a variety of best-quality C# Interleaved 2 of 5 generators, with which you can easily input valid data and create scannable Interleaved 2 of 5 barcodes with high-quality.

Interleaved 2 of 5 Barcode Generator for VB.NET - Generating & creating Interleaved 2 of 5 using VB.NET

Interleaved 2 of 5 Barcode Generator for ASP.NET - Generating & creating Interleaved 2 of 5 in ASP.NET web applications

Interleaved 2 of 5 Barcode Generator for WinForms - Creating Interleaved 2 of 5 in .NET Windows forms

Interleaved 2 of 5 Barcode Generator for Crystal Reports - Inserting and adding Interleaved 2 of 5 barcodes in Crystal Reports

Interleaved 2 of 5 Barcode Generator for Reporting Services - Printing and drawing Interleaved 2 of 5 barcodes in SQL Reporting Services


Interleaved 2 of 5 C# Data Encoding - Install

In order to input valid data to generate Interleaved 2 of 5 image using C#, first you'll need to install C# Interleaved 2 of 5 barcode generator in your .NET development environment. Please follow the simple steps below and you'll get it done in no time!

1. Download KeepAutomation Interleaved 2 of 5 barcode generator for C# and unzip

2. Open Microsoft Visual Studio, choose "Add Reference" in "Project".

3. Browse to select KeepAutomation.Barcode.Windows.dll or KeepAutomation.Barcode.Web.dll and click OK.

4. Now you will see "KeepAutomation.Barcode.Web" or KeepAutomation.Barcode.Windows" under your references

Now you have successfully added KeepAutomation Interleaved 2 of 5 generator for C# into your reference, and you can begin input data into Interleaved 2 of 5 barcode and create Interleaved 2 of 5 image using C sharp.



Interleaved 2 of 5 C# Data Encoding - Samples

How to Encode Interleaved 2 of 5 with Valid Data Character

Valid data character set for Interleaved 2 of 5: 0, 1, 2, 3, 4, 5, 6, 7, 8, 9.

Here's a sample code on how to encode valid Interleaved 2 of 5 data and create valid Interleaved 2 of 5 image in C#.

BarCode interleaved25= new BarCode();

interleaved25.Symbology = Symbology. Interleaved2of5;

interleaved25.X = 1;

interleaved25.ImageFormat = ImageFormat.Png;

interleaved25.CodeToEncode = "1666954";

interleaved25.generateBarcodeToImageFile("C://csharp_interleaved25_eg1.png");



How to Encode Interleaved 2 of 5 with Valid Data Length

Interleaved 2 of 5 is a variable-length interleaved25.

Here's a sample code on how to encode Interleaved 2 of 5 image with valid data length using C#.NET.

BarCode interleaved25= new BarCode();

interleaved25.Symbology = Symbology.Interleaved2of5;

interleaved25.X = 1;

interleaved25.ImageFormat = ImageFormat.Png;

interleaved25.CodeToEncode = "44885520";

interleaved25.generateBarcodeToImageFile("C://csharp_interleaved25_eg2.png");