VB.NET: Online Guide
How To: Barcode Generator
Quick to Start
  |  
Home ›› XImage.Barcode Generator ›› VB.NET Barcode Generator: Quick to Start

VB.NET Imaging - Quick to Start Using XImage.Barcode Generator


To Have a Quick Evaluation of XImage.Barcode Generator in Visual VB.NET Console Application




As a leading professional third-party SDK supplier in the field of image and document management, RasterEdge has always been devoted to providing various effective and fully-functional barcode imaging solutions for developers who are working on different .NET developing applications. convert pdf to jpg vb.net, c# convert pdf to tiff free, vb.net word to pdf, vb.net convert pdf to text, c# convert pdf to svg, c# code to save excel file as pdf, compare two pdf files using c#.


Related .net document control helps:
asp.net edit pdf image using c#: ASP.NET PDF Image Edit Control: online insert, edit PDF images in C#
asp.net pdf document viewer c#: ASP.NET PDF Document Viewer in C#: open, display, view, annotate, redact Adobe PDF files online in ASP.NET MVC & WebForm...
asp.net pdf editor component: EdgePDF: ASP.NET PDF Editor Web Control: Online view, annotate, redact, edit, process, convert PDF documents
asp.net edit pdf image using c#: ASP.NET PDF Image Edit Control: online insert, edit PDF images in C#
asp.net pdf document viewer c#: ASP.NET PDF Document Viewer in C#: open, display, view, annotate, redact Adobe PDF files online in ASP.NET MVC & WebForm...
asp.net pdf editor component: EdgePDF: ASP.NET PDF Editor Web Control: Online view, annotate, redact, edit, process, convert PDF documents
asp.net edit pdf image using c#: ASP.NET PDF Image Edit Control: online insert, edit PDF images in C#


This VB.NET barcode generation toolkit, RasterEdge XImage.Barcode Generator SDK for .NET is one of the most strongly-featured and mature document imaging library toolkits on the market, which is designed to help developers implement barcode-related tasks in their VB.NET applications. best pdf preview in asp net c#, how to write pdf file in asp.net c#, asp.net add text to pdf field, imagedraw asp.net multipage tiff viewer, pdf viewer in mvc 4, asp.net pdf viewer free, asp.net mvc open word document in browser.


Using this VB.NET barcode generation control, you can easily and quickly complete both 1d and 2d barcode creating on images. tiff files, PDF documents, Word documents, Excel files and PPT files in any type of a 32-bit or 64-bit .NET application, including ASP.NET web service and Windows Forms for any .NET Framework version from 2.0 to 4.5.


As you know, there're various reliable barcode generation features that can be implemented in VB.NET programming. And you may want to have a quick testing on RasterEdge XImage.Barcode Generator after downloading its free trial package online.  To meet your requirement, on this quick to start page, we will tell how to create a VB.NET console application, and create Code 39 on PDF in VB.NET.




Create a VB.NET Console Application



Open Visual Studio and click "New" from toolbar. Note, Visual Studio 2005 and above versions are available;


Choose "VB.NET Language" and "Console Application" respectively to create a project.




Sample VB.NET Code for Creating Code 39 on PDF Page



By following steps below, your VB.NET project are able to create Code on PDF page.


Choose "VB.NET Language" and "Console Application" respectively to create a project.


  RasterEdge.Imaging.Basic.dll


  RasterEdge.Imaging.Basic.Codec.dll


  RasterEdge.Imaging.Processing.dll


  RasterEdge.Imaging.Font.dll


  RasterEdge.Imaging.Drawing.dll


  RasterEdge.XImage.BarcodeCreator.dll


  RasterEdge.XImage.Raster.Core.dll


  RasterEdge.XImage.Raster.dll


  RasterEdge.XDoc.PDF.dll


Use namespace "RasterEdge.XDoc.PDF";


Use namespace "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.


Copy of the following VB.NET sample code to your application.




    'create a Data Matrix barcode
    Dim  barcode As  DataMatrix = new DataMatrix()
    'encode data into Data Matrix barcode   
    barcode.Data = "123456789"
    'set module size
    barcode.X = 5.0F
    'the minimum value for each margin should be equal to X
    barcode.RightMargin = barcode.LeftMargin = barcode.TopMargin = barcode.BottomMargin = barcode.X
    'set barcode printing resolution
    barcode.Resolution = 96
    'set rotation
    barcode.Rotate = Rotate.Rotate0
    barcode.BarcodeHeight = 200
    barcode.BarcodeWidth = 200
    barcode.AutoResize = true

    'convert barcode to a bitmap and save it to image file
    'Dim bmp As Bitmap = barcode.ToImage()
    'bmp.Save("C:\\barcode.bmp")

    'add data matrix to pdf page.
    Dim docx As PDFDocument = new PDFDocument("C:\\Sample.pdf")
    Dim  page As PDFPage = docx.GetPage(0)
    page.AddImage(barcode.ToImage(), new PointF(100F, 100F))
    docx.Save("C:\\Sample_Barcode.pdf")