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 Set UPC-A Size in VB.NET
C#.NET UPC-A Generator is a great barcode generating component that supports to create UPC-A, UPC-A+2 as well as UPC-A+5 barcodes in C#.NET development environments. User may easily integrate UPC-A barcode generation component into C#.NET Programs.
C#.NET UPC-A Generator provides user-defined UPC-A barcode size settings that allows users to simply modify UPC-A barcode size through barcode width & height, bar width& height, quiet margins size, etc. This integrating guide tells how to customize UPC-A barcode size using C# class; others please see:
UPC-A Size Related Properties

Supplementary Barcode

User may easily generate supplementary 2 & 5 digits for UPC-A barcode with customized size using SupplementCode, SupplementSpace and SupplementHeight properties.

Barcode Resolution

Users may change UPC-A barcode size through setting barcode resolution to a larger one using Resolution

Barcode Unit

Users may choose three different barcode unit measurements - pixel, cm and inch to measure all UPC-A barcode size related properties using BarcodeUnit property.

Quiet Margin

Users may easily change the quiet zone size of generated UPC-A barcode using QuietMargin related property, including TopMargin, BottomMargin, RightMargin and LeftMargin.

Bar Width & Height

Users may quickly change UPC-A barcode size through setting bar width and height using BarWidth and BarHeight property.

Barcode Width & Height

Users may set the whole barcode width and height of UPC-A barcode using BarcodeWidth and BarcodeHeight in accordance with users' needs.
Customize UPC-A Barcode Sizes in C#.NET
If you want to adjust UPC-A image size in C#.NET, be sure that you have installed:
Customize UPC-A Barcode Size in C#.NET
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");
Change UPC-A Barcode Unit Measuirement
BarcodUnit default value in Barcode Generator for .NET Ultimate is BarcodeUnit.PIXEL.

Copy those following code to change your unit measurement for all size related properties:
barcode.BarcodeUnit = BarcodeUnit.PIXEL;
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;
Encode Variable Data Length for UPC-A Barcode
Code default value in Barcode Generator for .NET Ultimate is "".

Copy those following code to change your data length:
barcode.Code = "(01)25494";
Adjust UPC-A Bar Width and Height
BarWidth and BarHeight default value in Barcode Generator for .NET Ultimate are 3 pixel and 60 pixel.

Copy those following code to specify your module width and height:
barcode.BarHeight = 75;
barcode.BarWidth = 3;
Specify UPC-A Barcode Width & Height
BarcodeWidth and BarcodeHeight default value in Barcode Generator for .NET Ultimate are 0 respectively.

Copy those following code to specify your barcode width and height:
barcode.BarcodeHeight = 100;
barcode.BarcodeWidth = 500;
Control 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;