BizCode Barcode Generator for .NET Ultimate
The most robust & powerful barcode generating SDK for Microsoft .NET Framework
Quick Overviews
  • Mature barcode creating SDK
  • Support .NET 2.0/3.0/4.0
  • 100% developed in C#.NET
  • Dynamic barcodes support
  • User-defined controls provided
How to Encode UPC-A Data in VB.NET
C#.NET UPC-A Generator aims to provide a professional barcode solution for UPC-A barcode generation, which is completely built in Visual C#.NET 2.0/3.0/4.0. It can be used in C#.NET Class library & Console Application, as well as Crystal reports and RDLC reports.
C#.NET UPC-A Generator creates & print UPC-A barcodes in an accurate way according to UPC-A barcode specification in GS1 system. It supports to encode numeric data only and calculate and print error correcting check digit as the last digit in each UPC-A. Here is a user guide for UPC-A data encrypting in C#.NET; if you want to know more, please link to:
UPC-A Data Related Properties

Symbology

Users may easily generate UPC-A barcodes using Symbology property.

C#.NET UPC-A Barcode Generator encodes:
  • 0, 1, 2, 3, 4, 5, 6, 7, 8, 9

Code

Users may easily encode UPC-A barcode data string with a fixed length using Code property.

SupplementCode

Users may easily change add supplementary 2 and 5 digits barcode for UPC-A barcode using SupplementCode property.

Supplementary Barcodes encode:
  • 0, 1, 2, 3, 4, 5, 6, 7, 8, 9

Check Digit Calculation

Users may add and display a Modulo 10 check digit for UPC-A barcodes in accordance with their needs using AddChecksum and DisplayChecksumDigit properties.

Human-readable Text

Users may simply customize human-readable text and enable it under generated UPC-A barcode using DisplayText and Textfont properties.
Customize UPC-A Barcode Data in C#.NET
If you want to encode UPC-A data in C#.NET, be sure that you have installed:
Encode UPC-A Barcode Data in .NET Project Using C# Class
Copy those following code onto your C#.NET projects:
using BusinessRefinery.Barcode;

Linear barcode = new Linear();
barcode.Symbology = Symbology.UPCA;
barcode.Code = "01234567890";

barcode.drawBarcode2ImageFile("c:/upc-a-csharp.gif");
Show Check Digit for UPC-A Barcode
DisplayChecksumDigit default value in Barcode Generator for .NET Ultimate is true.

Copy those following code to add and display Modulo 10 check digit for UPC-A barcodes:
barcode.DisplayChecksumDigit = true;
Display UPC-A Barcode Human-Readable Text
DisplayText default value in Barcode Generator for .NET Ultimate is true.

TextFont default value in Barcode Generator for .NET Ultimate is new Font("Arial", Font.PLAIN, 11).

Copy those following code to show human-readable text with customized font style:
barcode.DisplayText = true;
barcode.TextFont = new Font("Arial", 11.0f, FontStyle.Bold);
Create Supplementay Barcode for UPC-A
SupplementCod default value in Barcode Generator for .NET Ultimate is "".
SupplementHeight default value in Barcode Generator for .NET Ultimate is 0.8f.
SupplementSpace default value in Barcode Generator for .NET Ultimate is 15 pixel.

Copy those following code onto your C#.NET projects:
barcode.Symbology = Symbology.UPCA_5;
barcode.SupplementCode = "12895";
barcode.SupplementHeight = 0.4;
barcode.SupplementSpace = 20;