UPC-A Barcode FAQ for ASP.NET

ASP.NET Web Server Control Generator, UPC-A Barcode Image, Data, and Size Issues
Terrek Barcode for ASP.NET - UPC-A Barcode FAQ
Terrek UPC-A ASP.NET Barcode Generator SDK is designed especially for the encoding and printing of UPC barcode in ASP.NET applications. The control could be added into your web projects with simple Xcopy and used with simple drag-and-drop technique. The creations of two digits supplement barcode (EAN-2) and 5-digit add-on symbol are supported.
We will walk you through the following aspects of UPC-A barcode generation in .NET Winform in this page:
  • UPC-A in ASP.NET Barcode Control - Data Encoding Support
  • UPC-A in ASP.NET Barcode Control - Barcode Scaling Support
  • UPC-A in ASP.NET Barcode Control - Image Setting Support
  • UPC-A in ASP.NET Barcode Control - Solution Projects Support
Terrek also provides more UPC-A barcode generators for solutions in distinct developing environments, including UPC-A Reporting Service CRI, UPC-A Java SDK, UPC-A Excel Add-in, and UPC-A Word Add-in.
UPC-A in ASP.NET Barcode Control - Data Encoding Support
Valid Data of UPC-A Generator for ASP.NET:
  • 0, 1, 2, 3, 4, 5, 6, 7, 8, 9
  • 12 digits including the check digit
Sample URL: http://YourDomain:Port/barcode/aspcontrol.aspx?Symbology=36&BarcodeData =12345678901;
Supplement Barcode Encoding
2 and 5 digits supplement barcode are supported. The size of the supplement barcode is adjustable. AddOnHeight defines the height of the add-on symbol. It is a multiple of primary bar height, Y. AddOnMargin is the space between barcode and add-on symbol, measured in pixel.
  • UPC-A+2 Sample URL: http://YourDomain:Port/barcode/aspcontrol.aspx?Symbology=37&AddOnData=12&AddOnHeight=0.8&AddOnMargin=10;
  • UPC-A+5 Sample URL: http://YourDomain:Port/barcode/aspcontrol.aspx?Symbology=38&AddOnData=12345&AddOnHeight=0.8&AddOnMargin=10;
UPC-A in ASP.NET Barcode Control - Barcode Scaling Support
Module Bar Size
The width of module bar is managed by BarWidth; the height of bar is controlled by BarHeight.
Sample URL: http://YourDomain:Port/barcode/aspcontrol.aspx?Symbology=36&BarWidth=2& BarHeight=50;
Margins Width
Increasing the width of margins around the symbol is one way to enhance the readability of the UPC-A barcode image. The control library set the left, right, top, and bottom margins separately with float values.
Sample URL: http://YourDomain:Port/barcode/aspcontrol.aspx?Symbology=36& MarginL=10& MarginR=10& MarginT=10& MarginB=10;
Image Size
If the breakdown parameters are not provided, you can set the width and height of the barcode image directly. Once you enabled the image resize function, you only need to provide the size of entire barcode image. This intelligent UPC-A will draw the barcode with reasonable parameters. The generated UPC-A is 100% compatible with GS1 Barcode Standards.
Sample URL: http://YourDomain:Port/barcode/aspcontrol.aspx?Symbology=36& ImageResize=true&ImageWidth=150&ImageHeight=50;
UPC-A in ASP.NET Barcode Control - Image Setting Support
Image Formats
With Terrek Barcode ASP.NET Control DLL, UPC-A is created as high quality GIF, JPEG, or PNG graphic images. Tiff and Bitmap are supported as well. Please ensure the accordance of image format and suffix of image file name.
Sample URL: http://YourDomain:Port/barcode/aspcontrol.aspx?Symbology=36& ImageFormat=Png;
Image Resolution
DPI (Dots per inch) is used commonly as the measure of printing resolution. The resolution of image generated by UPC-A generator could be managed with DPI.
Sample URL: http://YourDomain:Port/barcode/aspcontrol.aspx?Symbology=36& DotsPerInch=96;
Image Rotation
In case of any specified requirement of the image orientation, image rotation function is added to the control library. Rotation angles of 90, 180, and 270 degrees are supported.
Sample URL: http://YourDomain:Port/barcode/aspcontrol.aspx?Symbology=36& Rotation=Degree90;
UPC-A in ASP.NET Barcode Control - Solution Projects Support
UPC-A Barcode ASP.NET Control integrates with the following types of projects:
  • ASP.NET Web Site (design-time and runtime support)
  • .NET Web Service Project (runtime support)
  • Console Application (runtime support)
  • Class Library (runtime support)