C#: Online Guide
How To: Barcode Generator
Install, Deploy and Distribute
Home ›› XImage.Barcode Generator ›› VB.NET Barcode Generator: Install, Deploy and Distribution

VB.NET Imaging - Install, Deploy and Distribute XImage.Barcode Generator

Online VB.NET Guide for XImage.Barcode Generator Installation, Deployment and Distribution

There are two parts on this page, including system requirements for using XImage.Barcode Generator, and how to install XImage.Barcode Generator into visual studio VB.NET .NET Applications.

Related .net document control helps:
asp.net view powerpoint: ASP.NET PowerPoint Document Viewer Control (MVC & WebForms): view ppt, pptx files online in C# using ASP.NET
asp.net edit pdf text using c#: ASP.NET PDF Text Edit Control: online edit PDF text content using C# ASP.NET
asp.net pdf viewer using c#: ASP.NET PDF Viewer Control: view, navigate, zoom Adobe PDF document in C# ASP.NET
c# asp.net mvc document viewer: ASP.NET MVC Document Viewer: view, annotate, redact files on ASP.NET MVC web projects
asp.net view tiff images: ASP.NET Tiff Viewer: view, annotate multipage Tiff images in ASP.NET MVC, WebForms using C# Control
asp.net mvc pdf editor using c#: ASP.NET MVC PDF Viewer & Editor: view, annotate, redact, edit PDF document in C# ASP.NET MVC
asp.net edit pdf page using c#: ASP.NET PDF Pages Edit Control: add, remove, sort, replace PDF pages online using C#

System Requirements

Windows XP SP3 or later

Microsoft .NET Framework 2.0 or later

Install XImage.Barcode Generator in VB.NET Project

Add necessary references to your VB.NET project. Right-click the project and select "Add Reference..." to locate and add the following DLLs as project references;










Use corresponding namespaces;

  using RasterEdge.XDoc.PDF;

  using RasterEdge.XImage.BarcodeCreator;

Note: When you get the error "Could not load file or assembly 'RasterEdge.Imaging.Basic' or any other assembly or one of its dependencies. An attempt to load a program with an incorrect format", please check your configure as follows:


       If you are using x64 libraries/dlls, Right click the project -> Properties -> Build -> Platform target: x64.


       If using x86, the platform target should be x86.

Add the following VB.NET demo code to your project (create Code 128 on PDF Document demo).

Dim inputFilePath As String = "C:\\input.pdf"
Dim outputFilePath As String = "C:\\output.pdf"

'open the document
Dim doc As PDFDocument = new PDFDocument(inputFilePath)
Dim page As PDFPage = (PDFPage)doc.GetPage(0)

'Construct a linear barcode
Dim barcode As Linear = new Linear()
'set type to CODE128
barcode.Type = BarcodeType.CODE128
'set module width to 1 pixel
barcode.X = 1
'set module height to 60 pixel
barcode.Y = 60
'set data
barcode.Data = "1234567";
'draw barcode at point (20, 20)
barcode.DrawBarcode(page, 20F, 20F)

'output the new document