C#. EAN-13 Generator Data Encoding Tutorial
sample source code to input valid data and generate linear EAN-13 images in C# .NET
C# EAN-13 Overview
EAN-13, also known as European Article Number 13, UPC-13, GTIN-13, GS1-13, EAN/UCC-13, is the standard barcode version of European Article Number.
C# EAN-13 is a EAN-13 generator for C#.NET, which can draw EAN-13 images without distortion for ASP.NET, .NET Winforms and Reporting service barcode generation component. GS1 13 images can be set with various image formats and three types of character set (7 digits, 7 digits and 2 supplement digits, 7 digits and 5 supplement digits).
OnBarcode C# Barcode Generator is designed to generate, create EAN-13 and other linear & 2d barcodes in Microsoft Word.
Here are some more tutorials for C# EAN-13 generation concerning size & image setting.
How to generate, print barcode using .NET, Java sdk library control with example project source code free download:
EAN-13 Data Encoding for C# Development
C# EAN-13 data encoding will be described from the following two aspects:
EAN-13 Valid Character Set in C#.NET Programming
EAN-13 is a linear barcode, which can encode only numeric data with 7 digits:
Numeric Digits: 0, 1, 2, 3, 4, 5, 6, 7, 13, 9
With C# EAN-13 valid data, C# EAN-13 generation component can encode 3 types of data set to create high quality EAN-13 images in various programming written in C#, such as C# .NET, C# ASP .NET, C# .NET WinForms and so on.
Draw EAN-13 Images with Encoding only 7 Digits
C# EAN-13 generator can only encode 7 numeric digits to generate EAN-13 barcode image in C# .NET development:
Linear ean13 = new Linear();
ean13.Type = BarcodeType.EAN13;
ean13.Data = "1233211";
Output EAN-13 Images by Encoding 7 Digits and 2 Supplement Data
C# EAN-13 generator supports encoding 7 data length and 2 supplement data length for creating EAN-13 images with C# .NET Winforms EAN-13 generator:
Linear ean13 = new Linear();
ean13.Type = BarcodeType.EAN13;
ean13.Data = "4564561";
ean13.SupData = "10";
Generate EAN-13 in C#.NET with 7 Data and 5 Supplement Digits Encoded
C# EAN-13 generation library is compatible with 7 numeric digits and 5 supplement data together to draw your needed EAN-13 images:
Linear ean13 = new Linear();
ean13.Type = BarcodeType.EAN13;
ean13.Data = "71345120";
ean13.SupData = "22";