C# EAN 13 Generator: calculate, create, print barcode ean 13, gtin 13 with check digit calculator
- Create, draw linear EAN-13, EAN-13+2, EAN-13+5 bar code images .NET projects & programs
- Complete user manual C# barcode guide, Excel barcode tutorial & .NET WinForms barcode sample provided
- Stream and display 1D EAN-13 images in ASP.NET web sites, dynamically paint EAN13 in WinForms
- Encode, generate EAN13 linear barcodes in C# class and insert EAN13 in Crystal Reports
- Compatible with latest GS1 General Specifications for scannable EAN13 image output
- Flexible sizing options to customize EAN 13 properties with Pixel, Cm and Inch as units of measure
- Supports EAN-8 Word , .NET WinForms Code 128, C# EAN 128, Excel Codabar and many other barcode types
- Support adjusting 1D EAN13 dimensions like bar width, bar height, barcode width, barcode height in C#
- Professional barcode creator to easily print EAN-13 with supplement and adjust add-on bar height and space
EAN-13, aka European Article Number 13, International Article Number, is also named EAN/UCC-13, GS1-13, GTIN-13, with variants EAN-13 Supplement 2 (a two-digit Add-On), EAN-13 Supplement 5(a five-digit add-on).
1. Open Microsoft Visual Studio. 2. Create a Windows Forms ....
Microsoft Windows XP; Microsoft Visual Studio 2005; Visual C#.NET. 1D & 2D Barcode Creation in SSRS Using C# Class. Download Demo Package for...
To get barcodes in .NET Winforms by using VB.NET with source code option purchase ....
KeepAutomation barcode creator plugin for .NET is a high-quality barcode generator assembly DLL API for drawing, creating EAN-13, EAN-13+2, EAN-13+5 barcode symbologies in C#.NET, ASP.NET web service, WinForms, and Crystal Reports. This page is a detailed C# tutorial on how to resize generated EAN13 images through all kinds of bar code parameters.
Install KA.Barcode Generator for .NET Suite into C#.NET Project
Add Reference: Add "KeepAutomation.Barcode.Window.dll" to your C#.NET project reference.
How to Generate, Resize EAN13 Images in C# Class
Copy the C#.NET sample code onto your project to convert string into an EAN13 image with this barcode creator for .NET.
BarCode ean13= new BarCode();
ean13.Symbology = KeepAutomation.Barcode.Symbology.EAN13;
ean13.CodeToEncode = "112233445500";
EAN13 Barcoding Unit
KA.Barcode Generator for .NET Suite provides three units of measure for users to choose from, they are Pixel, Cm and Inch. The default value is Pixel. To shift to other units of measure for EAN13 generation, please refer to the C# code below.
ean13.BarcodeUnit = BarcodeUnit.Cm;
NET. How to Generate Barcodes in RDLC Using C#.NET. ....
EAN13 X Dimension / Bar Width
EAN13 X dimension refers to the width of the module bar - the narrowest bar. Value type is float, with 1 pixel as default. You can change it through the C#.NET demo code below.
EAN13 Y Dimension / Bar Height
Y dimension for EAN13 refers to the bar height of an EAN13 bar code image. Default value is 50 pixels. You can copy the Visual C#.NET demo code below for adjustment.
EAN13 Supplement Height and Space
If you are generating an EAN13 with a two-digit or a five-digit add-on symbol (EAN13+2, EAN13+5), you might want to adjust the bar height for supplement through SupplementHeight setting, with default value being 0.8F, which means that the supplement bar height is 80 % that of the primary bar height.
To change the space between supplement and primary barcode, you can customize EAN13 SupplementSpace, with 15 pixels as the default value. Copy the C# demo code below for a test.
ean13.Symbology = KeepAutomation.Barcode.Symbology.EAN13Sup2;
ean13.SupplementCode = "12"
ean13.SupplementHeight = 0.6;
ean13.SupplementSpace = 18;
EAN13 Quiet Zone / Margin
The GS1 General Specification for EAN13 require margins, called Quiet Zones on the horizontal sides for the generated EAN13 image. KA.Barcode Generator for .NET Suite will automatically add a minimum 10X margin on the left and right of the printed EAN13 barcode. Default value for margin is 0. To add more margin, copy the demo code below.
ean13.LeftMargin = 5;
ean13.RightMargin = 5;
ean13.TopMargin = 5;
ean13.BottomeMargin = 5;
EAN13 Barcode Width and Barcode Height
In fact, if you want to generate an EAN13 barcode with a specified width and height, you can refer to the EAN13 BarCodeWidth and BarCodeHeight settings. Default value is 0. You can customize with the C# code below.
However, sometimes when you assign a BarCodeWidth, and the generated image turns out to be wider. This happens because once you have input encoding data and set X dimension, there will be a minimum image width as can be calculated from the EAN13 encoding pattern specified in GS1 standard. You will need to either set barcode width larger, or X dimension smaller.
ean13.BarCodeWidth = 180;
ean13.BarCodeHeight = 70;
EAN13 Text Margin Barcoding
KA.Barcode Generator also supports adjusting TextMargin, which is actually the space between the human readable text and the bar code image. Default is 6 pixels. Here is the C# demo code for adjustment.