How to Generate UPC-A in .NET WinForms
How to Create & Integrate UPC-A Barcode Images in .NET WinForms
- Simple linear UPC-A generating in .NET WinForms through drag & drop implementation
- Easy to print and create linear UPC-A in .NET Winforms class and console applications
- Light-weight, easy-to-use 1D UPC-A generating control used widely
- Print and save linear UPC-A as gif, jpeg, png, tiff, and bitmap image files locally
- Easily add supplemental 2 & 5 digits for linear UPC-A barcodes in Windows Forms
- Automatically compute & add check digit for linear UPC-A barcodes
- Purchase with flexible royalty-free and reliable Developer Licenses
.NET WinForms UPC-A Barcode Component Overview
UPC-A Barcode Encoder Component is a barcode function of KA.Barcode for .NET WinForms, which is a powerful barcode control for generating UPC-A, UPC-A+2, UPC-A+5 and other linear, matrix barcodes in .NET Windows Forms, Crystal Reports, SQL Server Reporting Services, C#, VB.NET class & console applications. Developers can easily adjust generated picture through various settings with the user-friendly interface.
UPC-A Barcode Overview in WinForms
UPC-A, also known as Universal Product Code version A, UPC-A Supplement 5/Five-digit Add-On, UPC-A Supplement 2/Two-digit Add-On, UPC-A+5, UPC-A+2, UPC Code, UPC Symbol, GTIN-12, GS1-12, UCC-12, is the standard version of UPC barcode. UPC-A is used for marking products which are sold at retail in the USA.
UPC-A Barcode Overview in WinForms
- 0, 1, 2, 3, 4, 5, 6, 7, 8, 9
Download UPC-A Barcode Component in .NET WinForms
- "KeepAutomation.Barcode.Windows.dll"
- User Manual
- End User License Agreement
- Order Page
Pay Attention: This trial version can only be used for demo or testing purposes because the generated UPC-A barcode image contains a "KA Barcode" watermark. Integrate UPC-A Barcode in .NET Windows Forms
It is very simple and convenient to generate UPC-A barcode image in .NET Windows Forms with this barcode control.
- Add "KeepAutomation.Barcode.Windows.dll" from the unzipped package to your Visual Studio Toolbox.
- Find "BarCodeControl" generated in your Visual Studio Toolbox.
- Drag and drop "BarCodeControl" from Visual Studio Toolbox to your project form.
- Go to the Properties window and choose UPC-A barcode type to get your UPC-A barcode image.
- Customize your UPC-A barcode image through the "Properties" window.
Create UPC-A in .NET WinForms Using C# or VB.NET
- First of all, you should add reference "KeepAutomation.Barcode.Windows.dll" to your .NET WinForms project.
- Then, you may copy the following C# or VB demo code to generate UPC-A barcode image in .NET WinForms.
C# Sample code
BarCode upca = new BarCode(); upca.Symbology = KeepAutomation.Barcode.Symbology.UPCA; upca.CodeToEncode = "12345678901"; upca.generateBarcodeToImageFile("C://barcode-upca-csharp.bmp"); VB Sample code
Dim upca As KeepAutomation.Barcode.Bean.BarCode = New KeepAutomation.Barcode.Bean.BarCode
upca.Symbology= KeepAutomation.Barcode.Symbology. UPCA upca.CodeToEncode = "12345678901" upca.generateBarcodeToImageFile("C://barcode-upca-vbnet.bmp")
How to Generate UPC-A 2&5 Digits Add-on Barcodes in .NET WinForms
UPC-A barcode SDK allows users to add 2 or 5 digits supplemental data to the UPC-A barcode. Once encode the UPC-A 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 upcasup2 = new BarCode(); upcasup2.Symbology = KeepAutomation.Barcode.Symbology.UPCASup2; upcasup2.CodeToEncode = "12345678901"; upcasup2.X = 2; upcasup2.SupplementCode = "12"; upcasup2.SupplementHeight = 0.8f; upcasup2.SupplementSpace = 15; upcasup2.generateBarcodeToImageFile("C://upcasup2-csharp.png"); VB Sample code
Dim upcasup2 As KeepAutomation.Barcode.Bean.BarCode = New KeepAutomation.Barcode.Bean.BarCode
upcasup2.Symbology = KeepAutomation.Barcode.Symbology.UPCASup2 upcasup2.CodeToEncode = "12345678901" upcasup2.SupplementCode = "12" upcasup2.SupplementHeight = 0.8f upcasup2.SupplementSpace = 15 upcasup2.X = 2 upcasup2.ImageFormat = System.Drawing.Imaging.ImageFormat.Gif() upcasup2.generateBarcodeToImageFile("C://upcasup2-vb-net.gif") |