.NET Barcode ITF-14 Generator for .NET, C#, ASP.NET, VB.NET
.NET Barcode offers the most affordable .NET barcode generator for barcode .NET professionals.
.NET ITF14 Introduction
ITF14 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
The ITF-14 or UPC Shipping
Container Symbol is used to mark cartons, cases, or pallets that contain
products which have a UPC or EAN product identification number. The short-hand
name for the symbol is "ITF-14", which is an acronym for "Interleaved 2 of 5"
(the Barcode Symbology used) and 14 digits (the length of the container
symbol).
.NET Barcode Generator - How to generate barcodes in C# Class?
The following C# .NET code illustrates how to generate a barcode in C# class:
using KeepDynamic.Barcode.Generator;
BarCode barcode = new BarCode();
barcode.SymbologyType = SymbologyType.Code39;
barcode.CodeText = "CODE39";
barcode.Format = ImageFormat.Png;
barcode.drawBarcode("C://barcode-code39-csharp.png");
barcode.drawBarcode("Graphics object");
barcode.drawBarcode("Stream object");
.NET Barcode Generator - How to create barcodes in VB.NET Class?
The following VB.NET code illustrates how to generate a barcode in VB.NET class:
// Create linear barcode object in VB.NET
Dim barcode As KeepDynamic.Barcode.Generator.BarCode
barcode = New KeepDynamic.Barcode.Generator.BarCode()
// Set barcode symbology type to Code-39 in VB.NET
barcode.SymbologyType = SymbologyType.Code39;
// Set Code39 barcode value in VB.NET
barcode.CodeText = "CODE39"
// Set Code39 drawing image format to PNG in VB.NET
barcode.Format = ImageFormat.Png
// Generate Code-39 barcode & encode to the png image in VB.NET
barcode.drawBarcode("C://barcode-code39-vbnet.png")
// Generate Code-39 barcode & print to System.Drawing.Graphics object in VB.NET
barcode.drawBarcode("Graphics object")
// Create Code-39 barcode & draw to System.IO.Stream object in VB.NET
barcode.drawBarcode("Stream object")
How to create barcodes in Windows Forms Applications
To create linear & 2D barcodes in Windows Forms applications, do the following procedures:
- Add KeepDynamic.BarCode.Windows.dll to your C#, VB.NET project reference
- Add KeepDynamic.BarCode.Windows.dll to windows project toolbox
- Drag one of the BarCodeControl, DataMatrixControl, PDF417Control, QRCodeControl item to your windows forms
How to create barcodes in ASP.NET Web Forms Projects
To create linear & 2D barcodes in ASP.NET Web Forms applications, do the following procedures:
- Add KeepDynamic.BarCode.AspNet.dll to your C#, VB.NET project reference
- Add KeepDynamic.BarCode.AspNet.dll to windows project toolbox
- Drag one of the BarCodeControl, DataMatrixControl, PDF417Control, QRCodeControl item to your ASP.NET Web form pages, in your ASP.NET design view
.NET ITF-14 Barcodes Properties
| Class Properties |
HTTP Parameters |
Default |
Comments |
| SymbologyType |
symbology-type |
SymbologyType.Code128 |
Barcode type. Value for ITF-14 is SymbologyType.ITF14 |
| CodeText |
code-text |
"" |
Barcode value to encode |
| EnableChecksum |
enable-checksum |
true |
Checksum for barcode value |
| WideNarrowRatio |
wide-narrow-ratio |
2.0 |
For Code 39, Code 2 of 5, Interleaved 2 of 5, ITF-14, Identcode, Leitcode Only. Wide vs narrow bar width ratio, valid range 2.0 - 3.0 inclusive, default is 2.0 |
| ITF14BarHori |
itf14-bar-hori |
1.0 |
For ITF14 Only. The value of the horizontal bearer bar. Valid values are 0-10 which are a multiple of X. |
| ITF14BarVert |
itf14-bar-vert |
1.0 |
For ITF14 Only. The value of the vertical bearer bar. Valid values are 0-10 which are a multiple of X. |
| GraphicsUnit |
graphics-unit |
GraphicsUnit.Pixel |
BarCode graphics meature for all size related settings. 0: pixel; 1: cm; 2: inch. Default is pixel |
| X |
x |
2 |
Width of barcode module (narrow bar), default is 2 pixel |
| Y |
y |
75 |
Barcode module height, default is 75 pixel |
| 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 |
| Resolution |
resolution |
72 |
Barcode image resolution in dpi |
| Rotate |
rotate |
0 |
Barcode rotate angle, valid values: 0, 90, 180, 270 |
| DisplayCodeText |
display-code-text |
true |
If true, display barcode value text, otherwise do not display. |
| CodeTextFont |
code-text-font |
"Arial", Font.PLAIN, 11 |
Barcode text font style |
| Format |
format |
ImageFormat.Png |
Image format type. Using System.Drawing.Imaging.ImageFormat |
.NET Barcode Generator supports most common linear (1d) and matrix (2d) bar code standards, including: