BizCode Barcode Generator for .NET Ultimate
The most robust & powerful barcode generating SDK for Microsoft .NET Framework
Quick Overviews
  • Powerful barcode creating DLL
  • Completely run in VB.NET
  • 100% sample code provided
  • Multiple barcode formats
  • Full controls provided
How to Generate EAN-13 images in VB.NET
VB.NET EAN-13 Generator is one function of Barcode Generator for .NET Ultimate, which is an easy-to-use barcode generating SDK to create EAN-13 barcodes with a complete developer guide and 100% VB.NET source code.
VB.NET EAN-13 Generator supports to generate supplementary EAN-2 and EAN-5 barcodes for EAN-13 barcodes and specify all generated barcodes with different rotation, resolution in DPI and image formats. . More information about EAN-13 barcode related property settings, please see:
EAN-13 Image Related Properties

Supplementary Barcode

Barcode properties Symbology and Supplement Code are provided by Barcode Generator for .NET Ultimate for users to add EAN-2 or EAN-5 barcode on EAN-13 barcode.

Barcode Resolution

Image property Resolution is provided by Barcode Generator for .NET Ultimate for users to describe EAN-13 barcode resolution in dots per inch.

Barcode Rotation

Image property Rotate is provided by Barcode Generator for .NET Ultimate for users to change the rotated angle of EAN-13 barcode into 0, 90, 180 and 270 degrees.

Image Formats

Image property ImageFormat is provided by Barcode Generator for .NET Ultimate for users to draw and save EAN-13 barcode into dynamic image file formats, such as Png, Jpeg/Jpg, Gif, Tiff, Bmp, etc.

VB.NET Graphic Objects

Image property DrawBarcode is provided by Barcode Generator for .NET Ultimate for users to output EAN-13 barcode into VB.NET Graphics, Stream and Bitmap objects.
Customize EAN-13 Barcode Images in VB.NET
Make sure that your have installed those programs before you specify EAN-13 image in VB.NET:
Customize EAN-13 Barcode Images in .NET Project Using VB.NET Class
Copy those following code onto your VB.NET projects:
Dim barcode As BusinessRefinery.Barcode.Linear = 
New BusinessRefinery.Barcode.Linear()
barcode.Symbology = BusinessRefinery.Barcode.Symbology.EAN13
barcode.Code = "0123456789012";
barcode.drawBarcode2ImageFile("c:/ean-13-vb-net.gif")
Change EAN-13 Resolution in DPI
In Barcode Generator for .NET Ultimate, the default value of Resolution is 72 dpi.

Copy those following code to change your resolution:
barcode.Resolution = 104
Adjust EAN-13 Barcode Quiet Margin
In Barcode Generator for .NET Ultimate, the default value of BottomMargin, TopMargin , LeftMargin and RightMargin are 0 respectively.

Copy those following code to change your quiet margin size:
barcode.BottomMargin = 7
barcode.TopMargin = 7
barcode.LeftMargin = 5
barcode.RightMargin = 5
Change EAN-13 Image Rotation
In Barcode Generator for .NET Ultimate, the default value of Rotate is Rotate.Rotate0.

Copy those following code to change your image rotation angle:
barcode.Rotate = Rotate.Rotate180
Create Supplementay Barcode for EAN-13
In Barcode Generator for .NET Ultimate, the default value of SupplementCode is "".

In Barcode Generator for .NET Ultimate, the default value of SupplementHeight is 0.8f.

In Barcode Generator for .NET Ultimate, the default value of SupplementSpace is 15 pixel.

Copy those following code onto your VB.NET projects:
barcode.Symbology = BusinessRefinery.Barcode.Symbology.EAN13_5
barcode.Code = "01234567890"
barcode.SupplementCode = "12895"
barcode.SupplementHeight = 0.4
barcode.SupplementSpace = 20
Show EAN-13 Barcode Human-Readable Text
In Barcode Generator for .NET Ultimate, the default value of DisplayText is true.

In Barcode Generator for .NET Ultimate, the default value of TextFont is new Font("Arial", Font.PLAIN, 11).

In Barcode Generator for .NET Ultimate, the default value of TextMargin is 6 pixel.

Copy those following code to change your human-readable text:
barcode.DisplayText = true
barcode.TextFont = new Font("Arial", 11.0f, FontStyle.Bold)
barcode.TextMargin = 10
Save EAN-13 in Multiple Image Formats
In Barcode Generator for .NET Ultimate, the default value of is gif.

Copy those following code to change your image format:
barcode.Format = ImageFormat.Png;
barcode.drawBarcode2ImageFile("c:/ean-128-csharp.Png")
Users may change image format into gif, png, tiff, jpeg, png; or save it as VB.NET graphic objects:
Public Sub drawBarcode2Stream(ByVal fileStream As System.IO.Stream)
Public Sub drawBarcodeOnGraphics(ByVal graphics As
System.Drawing.Graphics)
Public Function drawBarcodeAsBytes() As Byte()
Public Function drawBarcodeOnBitmap() As System.Drawing.Bitmap