KA.Barcode for .NET Suite is a powerful and easy to use barcode generator library SDK, which can help you generate, print accurate barcode images in commonly-used projects, like Microsoft Excel Workbook, Microsoft Word Document, ASP.NET web application, Windows Forms, C# / VB.NET Class Library, to name just a few.
In addition, KeepAutomation also provides Word barcode generator addin/plugin written in C# code, designed for barcode generation with no programming revolved or barcode fonts needed. Please click here to view how to generate barcodes in Word document with generator addin
Compatibility & Requirements
- For Visual studio 2005/2008/2010
- Visual C#, Visual Basic.NET, Borland Delphi, etc
- Operating Systems with Microsoft .NET Framework 2.0 or above
- Microsoft Windows XP
- Microsoft Visual Studio 2008
- Visual Basic.NET
- Microsoft Office Word 2007
Download Barcode Generator Control Demo For Free
Install Control & Add Reference
Unzip the trial package for two dlls: "KeepAutomation.Barcode.Windows.dll" &"KeepAutomation.Barcode.Web.dll"
Add either of the components to reference by clicking "Project" and select "Add Reference"
Click "Browse" to locate either one of the above two controls and click "OK"
Now the control has been successfully added to your reference
How to Generate Barcodes in Word Using VB.NET
Create a new VB.NET project by selecting Word Document in Office Project Type
In the left-side Toolbox, drag a PictureBox into the created Word document
Double click the picture box, and you will be shifted to a Form1 for programming
Now copy the VB.NET sample code below to your Word barcode program
Debug the project, refresh Word, and the barcode will display in the Word document in PictureBox
Make sure you have installed the VS supported version of MS Word beforehand
Private Sub pictureBox1_Click(sender As Object, e As EventArgs)
Dim barcode As New BarCode()
barcode.CodeToEncode = "112233445566"
barcode.Symbology = KeepAutomation.Barcode.Symbology.EAN13
barcode.ChecksumEnabled = True
barcode.BarcodeUnit = BarcodeUnit.Pixel
barcode.DPI = 72
barcode.X = 1
barcode.Y = 60
barcode.Orientation = KeepAutomation.Barcode.Orientation.Degree0
barcode.TextFont = new Font ("Arial", 10f, FontStyle. Regular)
Dim bmp As Bitmap = barcode.drawBarcode()
Me.pictureBox1.Image = bmp