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 Generate UPC-A images in VB.NET
UPC-A Generator for C#.NET provides a professional and complete barcode solution for making UPC-A barcodes in .NET development environments using Visual C#. It can be completely run in any editions of .NET Framework, including C#.NET2.0/3.0/4.0.
Installing UPC-A Generator for C#.NET, users are allowed to add EAN-2 and EAN-5 barcode for UPC-A barcode according to users’ needs. Besides, users can easily customize UPC-A barcode image appearance related properties, like alignment, resolution, rotation, etc. This integration guide suggests how to use customize UPC-A images in C#.NET applications; others UPC-A size and data setting guides please go to:
UPC-A Image Related Properties

Supplementary Barcode

Users may simply add supplemental 2-digit & 5-digit barcode for UPC-A barcode that represent the different purpose for UPC-A barcode with SupplementCode related properties provided by Barcode Generator for .NET Ultimate.

Barcode Resolution

Users may easily change barcode resolution in DPI that can be used for both high-resolution output and low-resolution output printers with Resolution property provided by Barcode Generator for .NET Ultimate.

Barcode Rotation

Users may easily change barcode rotation angle into 0, 90, 180 and 270 degrees that can be recognized by all scanners with Rotate property provided by Barcode Generator for .NET Ultimate.

Image Formats

Users may easily save barcode images into various image formats for different purpose, like Png, Jpeg/Jpg, Gif, Tiff, Bmp, with ImageFormat property provided by Barcode Generator for .NET Ultimate.

C#.NET Graphic Objects

Users may easily save barcode images into .NET graphic objects, Graphics, Stream and Bitmap objects, with DrawBarcode property provided by Barcode Generator for .NET Ultimate.
Customize UPC-A Barcode Images in C#.NET
If you want to customize UPC-A image in C#.NET, be sure that you have installed:
Customize UPC-A Barcode Images 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");
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 to change your human-readable text:
barcode.Symbology = Symbology.UPCA_2;
barcode.SupplementCode = "12895";
barcode.SupplementHeight = 0.4;
barcode.SupplementSpace = 20;
Change UPC-A Resolution in DPI
Resolution default value in Barcode Generator for .NET Ultimate is 72 dpi.

Copy those following code to change your resolution:
barcode.Resolution = 104;
Change UPC-A Image Rotation
Resolution default value in Barcode Generator for .NET Ultimate is Rotate.Rotate0.

Copy those following code to change your image rotation angle:
barcode.Rotate = Rotate.Rotate180;
Adjust UPC-A Barcode Quiet Margin
BottomMargin, TopMargin , LeftMargin and RightMargin default value in Barcode Generator for .NET Ultimate is 0 respectively.

Copy those following code to change your quiet margin size:
barcode.BottomMargin = 7;
barcode.TopMargin = 7;
barcode.LeftMargin = 5;
barcode.RightMargin = 5;

Show 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).
TextMargin default value in Barcode Generator for .NET Ultimate is 6 pixel.
Copy those following code to change your human-readable text:
barcode.DisplayText = true;
barcode.TextFont = new Font("Arial", 11.0f, FontStyle.Bold);
barcode.TextMargin = 10;
Save UPC-A in multiple image formats
Format default value in Barcode Generator for .NET Ultimate is gif.

Copy those following code to change your image format:
barcode.Format = ImageFormat.Png;
barcode.drawBarcode2ImageFile("c:/upc-a-csharp.Png");
Users may change image format into gif, png, tiff, jpeg, png; or save it as C#.NET graphic objects:
public void drawBarcode2ImageFile(string filename);
public void drawBarcode2Stream(Stream fileStream);
public byte[] drawBarcodeAsBytes();
public Bitmap drawBarcodeOnBitmap();
public void drawBarcodeOnGraphics(Graphics graphics);