KA.Barcode for .NET Suite
How to Generate ITF-14 in C# Application
How to generate & print linear ITF-14 barcode images in C#, ASP.NET web applications, and windows forms

C# barcode generator: how to create, generate, print ITF-14 linear, 2d barcode generator in .net, asp.net. Free c# example









  • Simply integrate dynamic ITF-14 barcodes into .NET applications
  • Generate, create ITF-14 barcodes with Visual C# programming
  • Completely developed in Visual C#.NET 2.0/3.0/4.0
  • Support GS1 systems of standards for ITF-14 barcode generation
  • Free C# sample code provided to help users for ITF-14 integration, size and image customization
  • Automatically add check digit for ITF-14 barcodes
  • Mature ITF-14 barcode creating SDK used world-wide
  • Provide C#.NET source code with purchased developer license
ITF-14 Barcode Generator for C#.NET is a .NET barcode generating component, allowing easy ITF-14 barcode generation in .NET programs using Visual C#, including C#.NET Winforms, C#.NET web forms, C#.NET class & console applications, etc.
ITF-14 Introduction
ITF-14 is is also known as UPC Shipping Container Symbol ITF-14, ITF14, Case Code, UPC Case Code, EAN/UCC-14, EAN-14, UCC-14, DUN-14, GTIN-14, UCC-12, EAN/UCC-13, which is used to mark cartons, cases, or pallets that contain products which have a UPC or EAN product identification number.
ITF-14 Encodable Character Set:
  • 0, 1, 2, 3, 4, 5, 6, 7, 8, 9
  • 13 digits encodable
  • A check digit in the end
ITF-14 Valid Data Sets
  • 0, 1, 2, 3, 4, 5, 6, 7, 8, 9
ITF-14 Property Settings
Class Attribute HTTP Attribute Default Value Note
Basic
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.
ITF-14 Barcode Generation in C#.NET

How to Install ITF-14 Barcode for .NET Suite into your .NET Project

  1. 1.
    Download KA.Barcode Generator for .NET Suite and unzip;
  2. 2.
    Add "KeepAutomation.Barcode.Web.dll" or "KeepAutomation.Barcode.Windows.dll" to your C# project reference;
  3. 3.
    Click "Add Reference" in "project" and choose "Browse" in the pop-up window;
  4. 4.
    Locate your "KeepAutomation.Barcode.Web.dll" or "KeepAutomation.Barcode.Windows.dll";
  5. 5.
    Click "OK"; now you will see "KeepAutomation.Barcode.Web" or "KeepAutomation.Barcode.Windows" under your references.
QR Code bar codes in gif, jpeg, png, tiff, and bitmap formats with C#.NET programming; Multiple properties to select such as QR Code version, data...
VB.NET. Using the C# or VB.NET sample code below accordingly to produce and integrate QR Code in .NET Windows Forms applications. ....
more>

How to Generate ITF-14 in .NET Applications with C# Demo Code

using KeepAutomation.Barcode.Bean;

BarCode itf14= new BarCode();
itf14.Symbology = KeepAutomation.Barcode.Symbology.ITF14;

// Set ITF-14 valid encoding data: 6 numeric digits.
itf14.CodeToEncode = "123456";

// Apply checksum for ITF-14 barcode.
itf14.ChecksumEnabled = true;

// Display ITF-14 checksum in the human-readable text
itf14. DisplayChecksum = true;

// ITF-14 unit of measure, Pixel, Cm and Inch supported.
itf14.BarcodeUnit = BarcodeUnit.Pixel;

// ITF-14 image resolution in DPI.
itf14.DPI = 72;

// ITF-14 module bar width, ie. Width of the narrowest bar (X dimention), default is 1 pixel.
itf14.X = 3;

// ITF-14 module bar height (Y dimention)
itf14.Y = 60;

// ITF-14 margin size, a 10X space is automatically added according to specification.
itf14.LeftMargin = 0;
itf14.RightMargin = 0;
itf14.TopMargin = 0;
itf14.BottomMargin = 0;

// ITF-14 image orientation: 0, 90, 180, 270 degrees supported
itf14. Orientation = KeepAutomation.Barcode.Orientation.Degree0;

// Display human readable text
itf14.DisplayText = true;
itf14.TextFont = new Font ("Arial", 10f, FontStyle. Regular);
itf14.TextMargin = 6;

// Print ITF-14 barcodes in Png, Jpeg, Gif, Tiff, Bmp, etc. image formats.
itf14.ImageFormat = ImageFormat.Png;

// Generate and save ITF-14 barcodes to image format
itf14.generateBarcodeToImageFile("C://barcode-itf14-csharp.gif");

// Create ITF-14 barcodes in Stream object
itf14.generateBarcodeToStream(".NET System.IO.Stream Object");

// Draw & Print ITF-14 barcodes to Graphics object
itf14.generateBarcodeToGraphics(".NET System.Drawing.Graphics Object");

// Generate ITF-14 barcodes & write to byte[]
byte[] barcodeInBytes = itf14.generateBarcodeToByteArray();

// Generate ITF-14 barcodes & encode to System.Drawing.Bitmap object
Bitmap barcodeInBitmap = itf14.generateBarcodeToBitmap();