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
Development Environments
- For Visual studio 2005/2008/2010
- Visual C#, Visual Basic.NET, Borland Delphi, etc
OS Compatibility:
- Operating Systems with Microsoft .NET Framework 2.0 or above
Test Environment:
- 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
1.
Unzip the trial package for two dlls: "KeepAutomation.Barcode.Windows.dll" &"KeepAutomation.Barcode.Web.dll"
2.
Add either of the components to reference by clicking "Project" and select "Add Reference"
3.
Click "Browse" to locate either one of the above two controls and click "OK"
4.
Now the control has been successfully added to your reference
How to Generate Barcodes in Word Using VB.NET
1.
Create a new VB.NET project by selecting Word Document in Office Project Type
2.
In the left-side Toolbox, drag a PictureBox into the created Word document
3.
Double click the picture box, and you will be shifted to a Form1 for programming
4.
Now copy the VB.NET sample code below to your Word barcode program
5.
Debug the project, refresh Word, and the barcode will display in the Word document in PictureBox
6.
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
Me.pictureBox1.Refresh()
End Sub