EAN-13 Barcode FAQ for ASP.NET

ASP.NET Web Server Control Generator, EAN-13 Barcode Image, Data, and Size Issues
Terrek Barcode for ASP.NET - EAN-13 Barcode FAQ
EAN-13 Barcode ASP.NET Generator is a web-server control library that lets .NET programmers to print dynamic EAN-13 barcode images in web applications. Its built-in EAN-13 barcode generation capability could be integrated into your project. The EAN-13 could be generated by using Microsoft IIS as well.
In this page, you will get to know more about the following aspects:
  • EAN-13 in ASP.NET Barcode SDK - Data Encoding Support
  • EAN-13 in ASP.NET Barcode SDK - Barcode Scaling Support
  • EAN-13 in ASP.NET Barcode SDK - Image Setting Support
  • EAN-13 in ASP.NET Barcode SDK - Solution Projects Support
Terrek also provides more EAN-13 barcode generators for solutions in distinct developing environments, including EAN-13 .NET Winforms Control, EAN-13 Excel Add-in, EAN-13 Reporting Service Generator, and EAN-13 Java SDK.
EAN-13 in ASP.NET Barcode SDK - Data Encoding Support
EAN-13 Valid Data
  • 0, 1, 2, 3, 4, 5, 6, 7, 8, 9
  • 13 digits including the check digit
Sample URL: http://YourDomain:Port/barcode/aspcontrol.aspx?Symbology=13&BarcodeData =123456789012;
Supplement Barcode Encoding
A supplement barcode in 2 or 5 digits could be added to accompany EAN-13. 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.
  • EAN-13+2 Sample URL: http://YourDomain:Port/barcode/aspcontrol.aspx?Symbology=14&AddOnData=12345&AddOnHeight=0.8&AddOnMargin=10;
  • EAN-13+5 Sample URL: http://YourDomain:Port/barcode/aspcontrol.aspx?Symbology=15&AddOnData=12345&AddOnHeight=0.8&AddOnMargin=10;
EAN-13 in ASP.NET Barcode SDK - 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=13&BarWidth=2& BarHeight=50;
Margins Width
Increasing the width of margins around the symbol is one way to enhance the readability of the EAN-13 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=13& 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 EAN-13 will draw the barcode with reasonable parameters. The generated EAN-13 is 100% compatible with GS1 Barcode Standards.
Sample URL: http://YourDomain:Port/barcode/aspcontrol.aspx?Symbology=13& ImageResize=true&ImageWidth=150&ImageHeight=50;
EAN-13 in ASP.NET Barcode SDK - Image Setting Support
Image Formats
With Terrek Barcode ASP.NET Control DLL, EAN-13 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=13& ImageFormat=Png;
Image Resolution
DPI (Dots per inch) is used commonly as the measure of printing resolution. The resolution of image generated by EAN-13 generator could be managed with DPI.
Sample URL: http://YourDomain:Port/barcode/aspcontrol.aspx?Symbology=13& 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=13& Rotation=Degree90;
EAN-13 in ASP.NET Barcode SDK - Solution Projects Support
EAN-13 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)