- Barcode Products
-
Guide
- Generate barcodes in ASP.NET
- Generate barcodes in .NET WinForms
- Generate barcodes in Visual C#.NET
- Generate barcodes in Visual Basic.NET
- Generate barcodes in Java
- Generate barcodes in Crystal Reports
- Generate barcodes in Reporting Service
- Generate barcodes in RDLC Report
- Generate Barcodes in BIRT Report
- Integration
- Knowledge
- Order Now
- About Us
- Create, generate EAN-8 barcodes in C#.NET programs
- Create high quality EAN-8 barcodes in Png, Gif, Jpeg, Tiff, or Bmp files in .NET projects using C#
- Support to adjust width and height setting of the whole EAN-8 image
- Support to select pixel, cm, inch as unit measurement for EAN-8 size
- Absolute support to manage short bar to tall bar ratio of EAN-8 barcode
- Support 2 & 5 digit supplemental data add-on
- Compatible with EAN-8 specification in GS1 system
Installation of .NET Barcode Generator in C# .NET
- Add BusinessRefinery.Barcode.Win.dll or BusinessRefinery.Barcode.Web.dll to your .NET project reference
- Add .NET Barcode Generator .NET Windows Control Library to .NET Visual Studio Toolbox
Setting EAN-8 Barcode Size in C#.NET
C# EAN-8 barcode provides a set of barcode size settings to specify you EAN-8 barcodes. Please download C# barcode component and install, copy those following code to your Visual Studio:
Linear barcode = new Linear(); barcode.Symbology = Symbology.EAN8; barcode.Code = "9876543210";
Basic
BarcodeUnit
BarcodeUnit is a unit of measure for all size related properties.
barcode.BarcodeUnit = BarcodeUnit.PIXEL;
EAN-8 Barcode Width Related Settings
BarWidth
BarWidth, known as X dimension as well, is the minimum bar module width of EAN-8 barcode.
barcode.BarWidth = 5;BarcodeWidth
BarcodeWidth is the EAN-8 barcode image width, which is made up of right margin, EAN-8 symbol and left margin. The class library will auto reset the barcode width if your setting is less than the minimum setting.
barcode.BarcodeWidth = 200;Left & Right Margin
LeftMargin is used to modify generated barcode image left margin, which is a white zone on the left of EAN-8 symbol.
RightMargin is used to modify generated barcode image right margin, which is a white zone on the right of EAN-8 symbol.
barcode.LeftMargin = 3; barcode.RightMargin = 5;
EAN-8 Barcode Height Related Settings
BarHeight
BarHeight, known as Y dimension, is the EAN-8 bar module height.
barcode.BarHeight = 5;BarcodeHeight
BarcodeHeight is the EAN-8 barcode image height, which is made up of top margin, EAN-8 symbol, text margin, text and bottom margin. The class library will auto reset the barcode height if your setting is less than the minimum setting.
barcode.BarcodeHeight = 150;SupplementSpace
SupplementSpace is the space between the EAN-8 barcodes and supplemental data.
barcode.SupplementSpace = 19;Supplement Height
SupplementHeight is the height of the supplement data bar module. It is the N percent of Y (module height of EAN-8 barcode bar).
barcode.SupplementSpace = 0.5f;Top & Bottom Margin
TopMargin is used for specifying generated barcode image top.
BottomMargin is used for specifying generated barcode image bottom margin.
barcode.TopMargin = 3; barcode.BottomMargin = 5;Text Margin
TextMargin is the white space between the EAN-8 symbol and the human-readable text.
barcode.TextMargin = 20;Text Font
TextFont is used for setting fonts for human-readable characters in EAN-8.
barcode.TextFont = new FontStyle("Arial", Font.PLAIN, 11);