How to Generate EAN 13 in .NET WinForms
How to Generate & Print Linear EAN 13 Barcode Images in .NET Windows Forms
- Easy-to-use & robust barcode controls completely written in managed C#
- Easy to drag & drop EAN-13 generating component onto your windows forms
- Support supplemental 2 & 5 digits add-on for 1D EAN-13 barcodes
- Support linear EAN-13 generation complying with GS1 Standard
- Automatically compute and add check digit for linear EAN-13 barcodes
- Print and save 1D EAN-13 as gif, jpeg, png, tiff, and bitmap files
- Professional linear EAN-13 bar code generating DLL used widely
- Grant royalty-free and everlasting user licenses to users
.NET WinForms EAN-13 Barcode Library Description
EAN-13 Barcode Overview in WinForms
EAN-13, also known as European Article Number 13, EAN-13 Supplement 5/Five-digit Add-On, EAN-13 Supplement 2/Two-digit Add-On, GTIN-13, GS1-13, EAN/UCC-13, is one member of the EAN/UPC barcode symbology family that widely used in retail field at point of sale.
EAN-13 Barcode Encodable Data
- 0, 1, 2, 3, 4, 5, 6, 7, 8, 9
Download EAN-13 Barcode Library in .NET WinForms
Note: As the generated EAN-13 barcode image will include a "KA Barcode" watermark randomly, this evaluation version can not be used for commercial applications. Create EAN-13 Barcode in .NET Windows Forms
- Download and unzip the evaluation version of EAN-13 Barcode SDK in .NET WinForms.
- Add "KeepAutomation.Barcode.Windows.dll" from the unzipped package to your Visual Studio Toolbox.
- Drag and drop "BarCodeControl" from Visual Studio Toolbox to Form1.
- Choose EAN13 barcode type in Properties window and an EAN-13 barcode image is created.
- Change other properties of EAN-13 barcode image through the "Properties" window.
Generate EAN-13 in .NET WinForms Using C# or VB.NET
- Add "KeepAutomation.Barcode.Windows.dll" to your project reference.
- Using the following C# or VB demo code to make EAN-13 barcode image in .NET WinForms.
C# Sample code
BarCode ean13 = new BarCode(); ean13.Symbology = KeepAutomation.Barcode.Symbology.EAN13; ean13.CodeToEncode = "012345678901"; ean13.generateBarcodeToImageFile("C://barcode-ean13-csharp.gif"); VB Sample code
Dim ean13 As KeepAutomation.Barcode.Bean.BarCode = New KeepAutomation.Barcode.Bean.BarCode
ean13.Symbology= KeepAutomation.Barcode.Symbology.EAN13 ean13.CodeToEncode = "012345678901" ean13.generateBarcodeToImageFile("C://barcode-ean13-vbnet.gif")
Create EAN-13 Add-on Barcodes in .NET WinForms
EAN-13 barcode SDK allows users to add 2 or 5 digits supplemental data to the EAN-13 barcode. Once encode the EAN-13 add-on barcodes, the size related properties needs to be set. Users may add supplemental digits using "Symbology" property and customize add-on barcode size by adjusting "SupplementCode", "SupplementHeight", "SupplementSpace" respectively. C# Sample code
BarCode ean13sup2 = new BarCode(); ean13sup2.Symbology = KeepAutomation.Barcode.Symbology.EAN13Sup2; ean13sup2.CodeToEncode = "012345678901"; ean13sup2.X = 2; ean13sup2.SupplementCode = "12"; ean13sup2.SupplementHeight = 0.8f; ean13sup2.SupplementSpace = 15; ean13sup2.generateBarcodeToImageFile("C://ean13sup2-csharp.png"); VB Sample code
Dim ean13sup2 As KeepAutomation.Barcode.Bean.BarCode = New KeepAutomation.Barcode.Bean.BarCode
ean13sup2.Symbology = KeepAutomation.Barcode.Symbology.EAN13Sup2 ean13sup2.CodeToEncode = "012345678901" ean13sup2.SupplementCode = "12" ean13sup2.SupplementHeight = 0.8f ean13sup2.SupplementSpace = 15 ean13sup2.X = 2 ean13sup2.ImageFormat = System.Drawing.Imaging.ImageFormat.Gif() ean13sup2.generateBarcodeToImageFile("C://ean13sup2-vb-net.gif") |