ASP.NET EAN-13 Generator Size Setting Tutorial

sample source code to generate linear EAN-13 images and adjust barcode size in ASP.NET


  • Insert flexible-size EAN-13 barcode image into web projects using ASP.NET Web Server Control
  • Completely coded in C#.NET
  • Support VB.NET, C#.NET, and Borland Delphi IDEs for ASP.NET
  • Print barcodes in Crystal Reports for ASP.NET Web Forms applications
  • Adjust bar, space, quiet zons, as well as barcode image in ASP.NET
  • Print flexible-size add-on symbol beside EAN-13
  • Compatible with GS1 barcode standars for EAN/UPC
  • Support .NET 2.0 and later version

EAN-13, also known as European Article Number 13, UPC-13, GTIN-13, GS1-13, EAN/UCC-13, is the standard barcode version of European Article Number.

For more details on how to set the image EAN-13 in ASP.NET, please go to ASP.NET EAN-13 image setting;

For more details on how to encode the EAN-13 valid data set and data length, please go to ASP.NET EAN-13 data encoding.



EAN-13 in ASP.NET Size Setting Properties

Before setting the size of EAN-13 using ASP.NET Barcode Web control, the size setting functions provided the control should be well known.

qrcode.net example c#, data matrix code generator c#, generate qr code excel, ean 13 check digit calculator c#, vb.net barcode, barcode generator in java source code

  • The unit of measure for all size related settings is controlled by UOM property. Pixel (0), inch (1), and cm (2) are supported
  • Module bar size setting:
    • bar width of a EAN-13 is set using X property. The value of X is float, default is 1 pixel.
    • bar height of the EAN-13 is controlled by property Y. The value of Y is float, default is 30 pixel.
  • EAN-13 symbol image size setting:
    • barcodeWidth are used to size the EAN-13 barcode image width, whose default value is 0 pixel.
    • barcodeHeight are used to size the height of the barcode image, whose default value is 0 pixel.
  • Supplement barcode size setting:
    • SupHeight sets the height of the supplement barcode if any. The default is 0.8. That is 80% module bar height.
    • SupSpace is designed for sizing the space between EAN-13 and add-on symbol, default is 15 pixel.
  • Margin size setting:
    • leftMargin: EAN-13 image left margin size, default value is 0 pixel.
    • rightMargin: EAN-13 image right margin size, default value is 0 pixel.
    • topMargin: EAN-13 image top margin size, default value is 0 pixel.
    • bottomMargin: EAN-13 image bottom margin size, default value is 0 pixel.
  • AutoResize are intelligent function that generate EAN-13 which is 100% compatible with its symbology specification
  • Human Readable Information size setting:
    • TextMargin sizes the space between symbol and text below symbol, default is 6 pixel.
    • TextFont includes the function to set the font size of the text.



ASP.NET EAN-13 Tutorial

Don't know how to install ASP.NET EAN-13 Generator Control? View ASP.NET Barcode Generator Control Tutorial.

For more detailed sample code in C#.NET or VB.NET, please click EAN-13 in C# and EAN-13 in VB.NET.





OnBarcode is a market-leading provider of barcode imaging generator, reader controls and components for ASP.NET, Windows Forms, WPF, as well Java, Android, iOS (iPhone, iPad) across all major enterprise development platforms. We provides comprehensive tutorials and how-tos for various linear, 2d barcode information, such as C# in ASP.NET, C# .NET, C# Barcode Encoding, C# Barcode Image, VB.NET in ASP.NET, VB.NET Winforms, VB.NET Barcode Encoding. OnBarcode barcode products are supported by RasterEdge ASP.NET Document Viewer, which supports ASP.NET PDF Viewer, ASP.NET MVC Document Viewer, ASP.NET PDF Editor, MVC PDF Viewer. And provide high quality C# Convert PDF to Tiff, C# Convert PDF to Word, C# Convert PDF to HTML, C# Convert PDF to Jpeg images, and their easy and simple documents, like C# PDF SDK, C# extract text from PDF, C# Compress PDF, Print PDF in C# and C# extract image from PDF.
Terms of Use | Privacy Policy
Copyright © OnBarcode.com . All rights reserved.