BizCode Barcode Generator for Winforms
The most robust & powerful barcode component for Microsoft .NET Windows Forms
Quick Overviews
  • Professional barcode control
  • Flexible controls provided
  • Support WinForms projects
  • Linear & 2D barcodes support
  • Winforms Data-binding support
How to Set EAN-13 Size in .NET WinForms
EAN-13 Generator for Winforms is easy to integrate EAN-13 barcodes with Microsoft Windows Fomrs applications, .NET class and console applications. It provides string named assemblies for .NET 2.0 and advanced version to easily generate EAN 13 barcode in Winforms projects.
EAN-13 Generator for Winforms provides advanced imaging functionalities to generate high quality EAN-13 image in JPEG, GIF, PNG, TIFF and Bitmap files without any distortion in Winforms programs. Developers are able to manipulate EAN-13 barcode imaging by setting image size, color, orientation and resolution, etc. This article explains how to specify EAN-13 barcode size in Winforms; EAN-13 barcode related setting, please see:
EAN-13 Size Related Properties

Resolution

With Barcode Generator for Winforms, users are allowed to create EAN-13 barcode into lower or higher resolution using Resolution property. However, higher resolution will lead to larger image on the same screen or printer.

EAN-2 & EAN-5

With Barcode Generator for Winforms, users are allowed to add supplementary EAN-2 or EAN-5 barcode for EAN-13 barcode using Symbology property. All the supplementary barcodes can be resize by controlling SupplementCode, SupplementHeight and SupplementSpace.

BizCode Generator for Winforms provides SupplementCode class for users, if they want to add EAN-2 or EAN-5 barcode for EAN-13 barcode.

Barcode Unit

With Barcode Generator for Winforms, users are allowed to measure the unit of bars with pixel, cm and inch using BarcodeUnit property.

Quiet Margin

With Barcode Generator for Winforms, users are allowed to easily control the size of each margin surrounding generated barcode using QuietMargin related property, including TopMargin, BottomMargin, RightMargin and LeftMargin.

Bar Width & Height

With Barcode Generator for Winforms, users are allowed to quickly adjust the width and height of each bar in generated barcode using BarWidth and BarHeight property.

Barcode Width & Height

With Barcode Generator for Winforms, users are allowed to choose barcode size using BarcodeWidth and BarcodeHeight in accordance with users’ needs. Barcode width and height should more than, or at least equal to the required minimum width and height.
Customize EAN-13 Barcode Size in Winforms
Ensure have installed those programs before you set EAN-13 size in .NET Winforms:
Customize EAN-13 Barcode Size in Windows Forms Using BarcodeControl
  • Add .NET Winforms Barcode Control onto your .NET Visual Studio Toolbox;
  • Drag and drop the WinLinearBarcode control into the Forms;
  • You will see a barcode image generated;
  • Right click you mouse to activate barcode setting panel and choose Symbology to EAN13;
  • Select Resolution, Symbology, SupplementCode, SupplementHeight, SupplementSpace, BarcodeUnit, BarWidth, BarHeight, BarcodeWidth, BarcodeHeight, TopMargin, BottomMargin, RightMargin, LeftMargin respectively to customize your EAN-13 barcodes.
Customize EAN-13 Barcode Size in Winforms Using C#, VB.NET Class
using BusinessRefinery.Barcode;

Linear barcode = new Linear();
barcode.Symbology = Symbology.EAN13;
barcode.Code = "012345678901"

// Change EAN-13 barcode unit measuirement in Pixel, Inch and Cm
barcode.BarcodeUnit = BarcodeUnit.PIXEL;


// Change EAN-13 resolution in DPI
barcode.Resolution = 104;

// Specify EAN-13 barcode width & height
barcode.BarcodeHeight = 100;
barcode.BarcodeWidth = 500;

// Specify EAN-13 bar width & height
barcode.BarHeight = 75;
barcode.BarWidth = 3;

// Control EAN-13 barcode top margin, bottom margin, right margin
and left margin size

barcode.BottomMargin = 7;
barcode.TopMargin = 7;
barcode.LeftMargin = 5;
barcode.RightMargin = 5;

barcode.drawBarcode2SizeFile("c:/ean-13-csharp.gif");
Dim barcode As BusinessRefinery.Barcode.Linear = 
New BusinessRefinery.Barcode.Linear()

barcode.Symbology = BusinessRefinery.Barcode.Symbology.EAN13
barcode.Code = "012345678901"

// Change EAN-13 barcode unit measuirement in Pixel, Inch and Cm
barcode.BarcodeUnit = BarcodeUnit.PIXEL

// Change EAN-13 resolution in DPI
barcode.Resolution = 104

// Specify EAN-13 barcode width & height
barcode.BarcodeHeight = 100
barcode.BarcodeWidth = 500

// Specify EAN-13 bar width & height
barcode.BarHeight = 75
barcode.BarWidth = 3

// Control EAN-13 barcode top margin, bottom margin, right margin
and left margin size

barcode.BottomMargin = 7
barcode.TopMargin = 7
barcode.LeftMargin = 5
barcode.RightMargin = 5

barcode.drawBarcode2SizeFile("c:/ean-13-vb-net.gif")