Crystal Reports Barcode Generator
UPC-A Barcode Generation in Crystal Reports


How to Create UPC-A Barcode in Crystal Reports Using C# or VB Demo



  • Advanced and powerful UPC-A barcode generation control for Crystal Reports
  • Completely developed in C#.NET and compatible with any .NET Framework environment
  • Generate and print UPC-A images in Visual C# and Visual Basic .NET
  • Easy to print scannable & readable UPC-A barcode images for Crystal Reports in no time
  • Able to customize UPC-A parameters, like SupplementCode, SupplementHeight & SupplementSpace
  • Display UPC-A in Gif, Tiff, Bmp, Png and Jpeg images or as graphic objects
  • Automatically calculate and add checksum character for UPC-A barcode
This guide delivers a clear, step-by-step method to create UPC-A barcodes in Crystal Reports for ASP.NET Web Forms, WinForms, and WPF projects. It covers core implementation, advanced customization, and check-digit validation to meet GS1 standards and integrate smoothly with Crystal Reports components.
Introduction of Crystal Reports UPC-A Barcode Control
KA.Barcode Generator for Crystal Reports is an easy-to-use and robust barcode generation component that allows developers to quickly and easily add barcode generation and printing functionality in Crystal Reports. The generated barcodes strictly conform to related barcode standards and barcode specifications.
Description of UPC-A Barcode
UPC stands for Universal Product Code. UPC-A is the most common form of UPC codes that consists of 12 digits to encode goods sold at point-of-sale in North America.
UPC-A Encodable Characters
  • UPC-A Encodable Characters: numeric digits 0-9
  • UPC-A Structure: 1 digit for Number System, 5 digits for Manufacturer Code, 5 digits for Product Code and 1 digit for checksum that will be automatically added by our software
UPC-A data encoding in Crystal Reports

UPC-A encoding characters and data length

UPC-A barcode can encode numeric data from 0 through 9.

UPC-A encodes 11 digits of numeric (0 through 9) message data along with a trailing check digit, for a total of 12 digits of bar code data.

UPC-A may be accompanied by an add-on symbol (2-digit or 5-digit)

To create UPC-A barcodes in Crystal Reports in .NET, you need choose barcode type "UPC-A" for standard barcodes, "UPC-A +2" for UPC-A with 2 digits supplemental code; and "UPC-A +5" for UPC-A with 5 digits supplemental code in the Crystal Reports report template file settings.

UPC-A Check Digit

The UPC-A checksum digit is based on a modulo 10 calculation based on the weighted sum of the values of each of the digits in the number system, manufacturer code, and product code.

Using UPC-A barcode generator in Crystal Reports .NET application, you can input 11 digits data without the last check sum digit. The barcode generator software will always ignore your provided check digit, and calculate the check digit based on your code first 11 digits.


UPC-A Barcode Add-on Configuration in Crystal Reports

UPC-A supports 2-digit or 5-digit add-on symbols for extra data such as prices or batch numbers on retail labels.

You can create UPC-A barcodes with supplementary data using these steps:
  1. Set the barcode type to BarcodeType.UPCA_2 (2-digit) or BarcodeType.UPCA_5 (5-digit).
  2. Assign 11 or 12 main digits to the Data property.
  3. Assign 2 or 5 supplementary digits to the SupData property.
Note: Mismatched digit lengths between the type and supplementary data will create invalid barcodes. You can double-check values before running the report.

Advanced Add-on Customization

You may adjust add-on appearance to fit Crystal Reports layouts:
  • SupHeight: Set add-on height as a percentage of the main barcode (default: 0.8f)
  • SubSpace: Adjust gap between main barcode and add-on (max: 12X)


Advanced UPC-A Customization for Crystal Reports (C#)

Quiet Zone Indicator Configuration

You can hide the quiet zone marker for cleaner report design in narrow sections.


Lead/Trail Digit Spacing and Styling

Improve readability by adjusting digit position and font in reports:
  • UPCEANLeadDigitSpace: Space before the first digit
  • UPCEANTrailDigitSpace: Space after the last digit
  • UPCEANLeadDigitYShift / UPCEANTrailDigitYShift: Vertical alignment
  • UPCEANLeadTrailDigitSizeRatio: Font size ratio for outer digits








Frequently Asked Questions

What is the definition of a GTIN-12 UPC-A barcode?

GTIN-12 is a 12-digit Global Trade Item Number that's commonly encoded as a UPC-A barcode. This number is 12 digits long, comprising 11 digits of data and one check digit.

What is the key difference between EAN-13 and UPC-A?

UPC-A is traditionally used in North America (including the USA and Canada), the UPC-A barcode is the carrier for a GTIN-12 number. While EAN-13 is used worldwide outside of this region.

What is the key difference between UPC-A and UPC-E?

UPC-A is a standard 12-digit barcode, whereas UPC-E is a compressed 6-digit version. UPC-E is used when there's limited space for the barcode.

What are the size limits (minimum & maximum) for a UPC-A barcode's X-dimension?

The acceptable tolerance for the UPC-A X-dimension is from 0.0104 inches to 0.0260 inches.
















Free Trial DownloadCrystal UPC-AUPC-A PropertiesUsing C#Using VB.NETUsing ASP.NETUsing .NET WinformsData Matrix for Crystal ReportPDF417 for Crystal ReportQR Code for Crystal ReportmoreCodabar for Crystal ReportCode 39 for Crystal ReportCode 128 for Crystal ReportEAN-8 for Crystal ReportEAN-13 for Crystal ReportEAN 128 for Crystal ReportIntelligent Mail for Crystal ReportInterleaved 2 of 5 for Crystal ReportISBN for Crystal ReportITF-14 for Crystal ReportRM4SCC for Crystal ReportUPC-E for Crystal Reportmore
KeepAutomation provides complete barcode automation solutions. We recommend the customers use high quality document controls: ASP.NET Document Viewer, ASP.NET MVC Document Viewer, Document Viewer ASP.NET C#, ASP.NET PDF Viewer, ASP.NET Word Viewer, ASP.NET Excel Viewer, ASP.NET PDF Editor, MVC PDF Viewer, ASP.NET Annotate PDF, c# pdf sdk, C# View, edit PDF online , C# Convert PDF to Tiff, C# Convert PDF to text, txt, .net imaging sdk, C# PDF metadata edit from RasterEdge.com.