Java Barcode Generator, .NET Barcode Generator for C#, ASP.NET, VB.NET

Home > .NET Barcode> Barcode Generation Guide> Excel Barcode Generation Guide in VB.NET

Download .NET Barcode Generator Trial

How to Generate Barcode in Excel using VB.NET

Quick Navigate

1. Prerequisites
  • BarcodeLib.Barcode.ASP.NET.dll / BarcodeLib.Barcode.WinForms.dll
  • Microsoft .NET Framework 2.0 (or later)
  • Visual Studio .NET 2005 or above
  • Microsoft Office Excel 2007 or above

2. How to install .NET Barcode Generator?
To install .NET barcode generator for your barcode project, simply add the barcode library to project reference.
  1. Download free trial package and unzip
  2. Create your barcoding project in Microsoft Visual Studio
  3. Click "Project" and select "Add Reference..."
  4. In the pop-up window, click "Browse" to add "BarcodeLib.Barcode.WinForms.dll" or "BarcodeLib.Barcode.ASP.NET.dll" to reference

3. How to Generate Barcodes in Excel with VB.NET
  1. Open your Visual Studio, and create a new Visual Basic project "Excel Worksheet"
  2. Now drag a PictureBox from the Toolbox and drop it in the Word document
  3. Double click picturebox to enter the Visual Basic programming interface
  4. Copy the Visual Basic (VB.NET) sample code to your project
  5. Debug and a barcode is printed in the Microsoft Excel document
         private void pictureBox1_Click(object sender, EventArgs e)
         BarcodeLib.Barcode.Linear barcode = new BarcodeLib.Barcode.Linear();

         barcode.Type = BarcodeType.CODE39;
         barcode.Data = "CODE39";

         barcode.UOM = BarcodeLib.Barcode.UnitOfMeasure.PIXEL;
         barcode.Rotate = RotateOrientation.BottomFacingDown;
         barcode.Resolution = 72

         barcode.BarWidth = 1
         barcode.BarHeight = 60

         barcode.LeftMargin = 0;
         barcode.RightMargin = 0;
         barcode.TopMargin = 0;
         barcode.BottomMargin = 0;

         Dim bmp As Bitmap = barcode.drawBarcode()
         Me.pictureBox1.Image = bmp

Other Related .NET Barcode Generator SDKs

   Copyright © 2013 Provides High Quality .NET Barcode, Barcode .NET, .NET Barcode Generator, Barcode Generation for .NET, C# Barcode, ASP.NET Barcode, VB.NET Barcode Components. All rights reserved.