KA.Barcode for .NET Suite
How to Generate ITF-14 in .NET Application
How to generate ITF-14 linear barcode images in ASP.NET, WinForms, C#, VB.NET class library
  • Generate, integrate dynamic ITF-14 images in ASP.NET web sites/ web form and Windows applications
  • Easily generate high-quality 1D ITF-14 barcode images in Visual C#, VB.NET class library
  • Written entirely in managed Visual C#.NET code
  • Strong named assemblies for Microsoft .NET Framework 2.0 and above
  • Encode numeric data for ITF-14 in Crystal Reports & SQL Server Reporting Services
  • Print and save ITF-14 linear barcodes in Png, Jpeg, Gif, Tiff, Bmp image formats
  • Automatically add checksum digit for ITF-14 as required in GS1 specification
  • Easy-to-use barcode package for .NET developers
KA.Barcode for .NET Suite is a professional & lightweight .NET component package, which allows developers to add barcoding capabilities into .NET projects. Furthermore, ITF-14 barcode properties could be adjusted through the setting panel or C#, VB.NET programming.
ITF-14 Introduction
ITF-14 is the GS1 implementation of an Interleaved 2 of 5 bar code to encode a Global Trade Item Number. ITF-14 symbols are generally used on packaging levels of a product, such as a case box of 24 cans of soup. The ITF-14 will always encode 14 digits including the check digit.

ITF-14 Encodable Character Set

  • Numeric digits 0-9

ITF-14 Data Length

  • 13 digits (excluding the check digit automatically added by KA.Barcode generator)
ITF-14 Generation in .NET Applications
Above all, please download KA.Barcode for .NET Suite and unzip.

How to Drag & Drop Barcode Control to Generate ITF-14

  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 "ITF14"

How to Generate ITF-14 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 ITF-14 is generated.
using KeepAutomation.Barcode.Bean;

BarCode itf14 = new BarCode();
itf14.Symbology = KeepAutomation.Barcode.Symbology.ITF14;
itf14.CodeToEncode = "1234567890123";
Dim itf14 As KeepAutomation.Barcode.Bean.BarCode = New KeepAutomation.Barcode.Bean.BarCode

itf14.Symbology = KeepAutomation.Barcode.Symbology.ITF14
itf14.CodeToEncode = "1234567890123"

How to Generate ITF-14 with Bearer Bars

Bearer bars are provided as a optional solution for ITF-14 to equalize the pressure exerted by the printing plate over the entire surface of the symbol. In this way, reading reliability of ITF-14 barcode could be enhanced.

itf14.BearerBarLeft = 1;
itf14.BearerBarTop = 1;

itf14.BearerBarLeft = 1
itf14.BearerBarTop = 1

How to Adjust ITF-14 Wide Bars

The width of the wide bars in ITF-14 could be adjusted using the WideNarrowRatio property. The value of WideNarrowRatio is the ratio that wide bar width is to narrow bar width.

itf14.X = 1;
itf14.WideNarrowRatio = 2.0f;

itf14.X = 1
itf14.WideNarrowRatio = 2.0f
How to Generate ITF-14 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?symbology=24&code-to-encode=1234567890123"
  4. 4.
    Adding ITF-14 to web page: insert the following tag onto your web pages
    <img src="http://localhost/barcode/barcode.aspx?symbology=24&code-to-encode=1234567890123"/>
ITF-14 Property Settings
Class Attribute HTTP Attribute Default Value Note
Symbology symbology Code128Auto Barcode symoblogy type
CodeToEncode code-to-encode "128" Barcode value to encode.
ChecksumEnabled checksum-enabled false Set to true, adding barcode checksum digit.
ImageFormat image-format ImageFormat.Png Barcode encoded image format.
Barcode Size
AutoSizeAdjust auto-size-adjust false If true, barcode X, Y module will be auto-adjusted.
BarcodeUnit barcode-unit BarcodeUnit.Pixel Unit of measure for all size related settings. 0: pixel; 1: inch; 2: cm.
X x 1 Barcode module width (narrow bar).
Y y 50 Linear barcode bar height / 2D barcode module height.
LeftMargin left-margin 0 Barcode image left margin.
RightMargin right-margin 0 Barcode image right margin.
TopMargin top-margin 0 Barcode image top margin.
BottomMargin bottom-margin 0 Barcode image bottom margin.
DPI dpi 72 Barcode image resolution in dpi.
Orientation orientation Orientation.Degree0 Barcode rotation angle.
BarCodeWidth barcode-width 0 Whole barcode width.
BarCodeHeight barcode-height 0 Whole barcode height.
Barcode Text Style
DisplayText display-text true Set to true, displaying barcode value text, otherwise do not display.
DisplayChecksum displace-checksum true Set to true, displaying barcode checksum digit, otherwise do not display.
TextFont text-font new Font(" Arial", 10 f, FontStyle.Regular) Barcode text font style.
TextMargin text-margin 6 Margin between barcode and text.
ITF-14 Specific Settings
BearerBarLeft bearer-bar-left 1 ITF-14 left and right bearer bars. It' s a multiple of X.
BearerBarTop bearer-bar-top 1 ITF-14 top and bottom bearer bars. It' s a multiple of X.
WideNarrowRatio wide-narrow-ratio 2.0f ITF-14 wide bar width vs narrow bar width ratio.