QR Code Image Sample - pqScan.com
.NET UPC-A Barcode Creator Encoding UPC A Image in .NET Online Demo Download Trial Purchase Now

How to Generate UPC-A

back to home  >  .NET Barcode Generator SDK  >  Generate Barcodes in .NET  >  Generate UPC A in .NET

Generating UPC-A in .NET is one of the generation roles in pqScan .NET Barcode Creator. With the similar structure and functionality to EAN-13, UPC-A barcode creation can be used in .NET Winforms projects and ASP.NET applications. For more help, making UPC-A in C# and VB.NET is support, too.

More about UPC-A

UPC-A, a barcode symbology based on the Universal Product Code (UPC), is widely used in the United States, Canada, the United Kingdom, Australia, New Zealand and in other countries for tracking trade items in stores.

Useful encoding UPC-A properties

BarType: Rendering UPC-A barcode, select barcode type to UPCA.

Data: Only support numeric digits (0 through 9). Input date length is 11 or 12, the check digits will be added automatically.

Width: It's barcode image width. UPC-A Creator will try to fill the width to draw barcode image, and if the encoded barcode width is remain smaller than image width, left and right margin will be added into UPC-A barcode image.

Height: It's barcode image height. UPC-A Creator will print barcode full fill the height.

ShowText: Whether show human-readable word in UPC-A barcode image. If true, the text would appear at the bottom of barcode image. Default is True.

BarcodeColor: Customize the foreground color of UPC-A barcode image. Default is Black color.

BackgroundColor: Specify the background color of UPC-A barcode image. Default is White color.

PictureFormat: Generate barcode and save image as Jpeg, Tiff, Gif, Png, Bmp format.

Useful encoding UPC-A Methods

// encode upca and draw on Bitmap object
public Bitmap CreateBarcode()

// create and draw upca to image file
publicvoidCreateBarcode(string filename)

// generate upca and paint on Stream object
publicvoidCreateBarcode(Stream stream)

// make and print upca to byte[] object
publicbyte[] CreateBarcodeInBytes()
.NET Barcode Creator QR Code Creator in .NET Data Matrix Creator in .NET PDF 417 Creator in .NET Aztec Code Creator in .NET EAN 13 Creator in .NET EAN 8 Creator in .NET Code 128 Creator in .NET Code 39 Creator in .NET