C#: Online Guide
How To: Barcode Generator
PDF 417
PDF 417
  |  
Home ›› XImage.Barcode Generator ›› VB Barcode Generator: PDF 417

VB Imaging - VB PDF 417 Barcode Writing Guide


Tutorial for PDF-417 Barcode Generator for VB.NET Imaging Application




VB Imaging - PDF417 Generator Add-On Overview



VB.NET developers have the ability to create PDF 417 barcode on image and document files by using the powerful and professional RasterEdge .NET Barcode Generator SDK. Our barcode generating SDK for VB.NET supports PDF 417 barcode creation in VB.NET class on JPEG, BMP, TIFF, PNG & GIF images and PDF & Word documents. If you are interested in PDF 417 creation in C# class, please link to how to create 2D PDF 417 barcode on image and document files in C#.NET. This PDF 417 barcode creating library is the most standard and easy-to-use barcode control that allows professional and non-professional end users to generate PDF 417 in various VB.NET applications, including VB.NET class & console library and VB.NET Windows & web applications.

how to search text in pdf using c#, convert pdf to text vb.net, c# pdf viewer open source, c# pdf highlight text, c# convert tiff to pdf free library, pdf to word c# open source, add text to pdf vb.net.

And this page is designed to demonstrate how to create customized PDF 417 barcode within VB Windows imaging application. With this particular PDF 417 barcode creator, users are also free to draw and save PDF 417 barcode as an independent graphics. And full barcode parameter settings are totally available for defining barcode color, location to meet users' specific requirements. pdf preview in asp.net c#, mvc pdf viewer free, asp.net pdf editor component, how to add header and footer in pdf using itextsharp in asp.net, how to upload pdf file in database using asp.net c#, asp.net show image from folder, asp net replace text from pdf javascript. This PDF 417 bar code generator for Visual VB is actually a composing functionality of RasterEdge DocImage SDK for .NET. It is a fully-featured barcode add-on library DLL written in VB.NET for developers to quickly add PDF-417 barcodes on image formats including PNG, JPG, GIF, BMP, as well as other file formats such TIFF, PDF, Microsoft Office Word, Excel and PowerPoint.


Related .net document control helps:
asp.net edit pdf page control: ASP.NET PDF Pages Edit Control: add, remove, sort, replace PDF pages online using C#
mvc document viewer: ASP.NET MVC Document Viewer: view, annotate, redact files on ASP.NET MVC web projects
asp.net office document viewer: ASP.NET Office Word Document Viewer: view Word doc files online using C# in ASP.NET MVC web applications
asp.net mvc pdf editor control: ASP.NET MVC PDF Viewer & Editor: view, annotate, redact, edit PDF document in C# ASP.NET MVC
asp.net document viewer free: EdgeDoc:ASP.NET Document Viewer C# Control: Open, view, annotate, redact, convert documents online in C#, VB.NET, AS...
asp.net dicom web viewer: ASP.NET Dicom Document Viewer Control: view, annotate dicom imaging files online in ASP.NET
asp.net view excel in browser: ASP.NET Excel Viewer in C# Control (MVC & WebForms): view Office Excel document in web browser.


Detailed features are listed below:


Summary on the benefits of PDF 417 Barcode Generating control for VB.NET


How to use VB demo code to create and define PDF 417 barcode on multiple image files


How to easily and accurately generate and specify 2D PDF 417 barcode on PDF, TIFF and MS Word documents within VB.NET Windows application


Complete and easy to use example code to create specified PDF 417 in VB.NET


Create two-dimensional PDF-417 barcodes in .NET Windows Forms projects


Streaming PDF-417 2D bar code images in ASP.NET web form/web site


Write & draw PDF-417 on various raster image formats and .pdf, .docx, .xlsx, .pptx files using VB language


Provide detailed tutorial for PDF-417 generation with Visual VB sample codes


Support creating VB PDF-417, Macro PDF 417, PDF 417 Truncated (Composite PDF 417)




VB Code for Customizing PDF417 Barcode Generation



One of the most important functions of RasterEdge .NET, VB.NET PDF 417 Creating control is to generate and define PDF 417 barcode on multiple daily used image files, such as gif, png, bmp, jpeg and multi-page tiff. You can easily generator PDF417 barcode and save it  to image files/object using this VB.NET barcode generator control. The following steps will show how to create a PDF417 type barcode encoding numeric data text "123456789" into the image object with XImage.Barcode.Creator.


Add References


  RasterEdge.Imaging.Basic.dll


  RasterEdge.Imaging.Drawing.dll


  RasterEdge.Imaging.Font.dll


  RasterEdge.Imaging.Processing.dll


  RasterEdge.XImage.BarcodeCreator.dll


  System.Drawing.dll


Using Namespaces


  using System.Drawing;


  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.


Please copy the sample code as follow to generator a PDF417 barcode.




'create a Data Matrix barcode
Dim barcode As PDF417 = New PDF417()
'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")





How to Create VB PDF 417 Barcode on Image



In order to create a PDF 417 bar code on images, you need to integrate .NET barcode generator component DLL into your VB.NET imaging project first. Below is the VB sample coding to draw PDF-417 at user-defined area on a png image. Please feel free to change the barcode location as you wish or shift image format to gif, jpeg or bmp.





Dim image As REImage  = New REImage("C:\\Sample.png")
barcode.DrawBarcode(image, 150F, 150F)
image.Save(ImageType.PNG, "C:\\Sample_Barcode.png")





How to Insert VB PDF 417 Barcode on Document



Apart from generating & printing PDF-417 barcode in image editing project, this VB.NET PDF-417 generator library can also help you insert PDF-417 barcode into a PDF, TIFF, Word, Excel or PowerPoint document. View detailed Visual VB samples below.



Generate PDF 417 Barcode on PDF Using VB Code



Add References(Extra)


  RasterEdge.Imaging.Basic.Codec.dll


  RasterEdge.XImage.Raster.dll


  RasterEdge.XImage.Raster.Core.dll


  RasterEdge.XDoc.PDF.dll


Using Namespace(Extra)


  RasterEdge.XDoc.PDF;


  RasterEdge.Imaging.Basic;


  RasterEdge.Imaging.Raster.Core;



Dim  docx As PDFDocument = New PDFDocument("C:\\Sample.pdf")
Dim  page As PDFPage = docx.GetPage(0)
Dim  image As Bitmap = barcode.ToImage() 'Define on the above code
page.AddImage(image, New PointF(100F, 100F))
docx.Save("C:\\Sample_Barcode.pdf")




Insert PDF 417 Barcode on TIFF with VB Code



Add References(Extra)


  RasterEdge.Imaging.Basic.Codec.dll


  RasterEdge.XImage.Raster.dll


  RasterEdge.XImage.Raster.Core.dll


  RasterEdge.XDoc.TIFF.dll


Using Namespace(Extra)


  RasterEdge.XDoc.TIFF;


  RasterEdge.Imaging.Basic;


  RasterEdge.Imaging.Raster.Core;




Dim  docx As TIFFDocument = New TIFFDocument("C:\\Sample.tif")
Dim page As BasePage = docx.GetPage(0)
Dim  image As REImage = New REImage(barcode.ToImage())
page.AddImage(image, New PointF(100F, 100F))
docx.Save("C:\\Sample_Barcode.tif")




Create PDF 417 Barcode on Word in VB Code



Add References(Extra)


  RasterEdge.XDoc.Word.dll


  RasterEdge.XImage.Raster.dll


  RasterEdge.XImage.Raster.Core.dll


  RasterEdge.XDoc.Office.Inner.Common.dll


  RasterEdge.XDoc.Office.Inner..Office03.dll


Using Namespace(Extra)


  RasterEdge.XDoc.Word;


  RasterEdge.Imaging.Basic;


  RasterEdge.Imaging.Raster.Core;




Dim  docx As DOCXDocument = New DOCXDocument("C:\\Sample.docx")
Dim page As BasePage = docx.GetPage(0)
Dim  image As REImage = New REImage(barcode.ToImage())
page.AddImage(image, New PointF(100F, 100F))
docx.Save("C:\\Sample_Barcode.docx")




Generate PDF 417 Barcode Image on Excel in VB



Add References(Extra)


  RasterEdge.XDoc.Excel.dll


  RasterEdge.XImage.Raster.dll


  RasterEdge.XImage.Raster.Core.dll


  RasterEdge.XDoc.Office.Inner.Common.dll


  RasterEdge.XDoc.Office.Inner..Office03.dll


Using Namespace(Extra)


  RasterEdge.XDoc.Excel;


  RasterEdge.Imaging.Basic;


  RasterEdge.Imaging.Raster.Core;




Dim  docx As XLSXDocument = New XLSXDocument("C:\\Sample.xlsx")
Dim page As BasePage = docx.GetPage(0)
Dim  image As REImage = New REImage(barcode.ToImage())
page.AddImage(image, New PointF(100F, 100F))
docx.Save("C:\\Sample_Barcode.xlsx")




Write PDF 417 Barcode Image on PowerPoint in VB



Add References(Extra)


  RasterEdge.XDoc.PowerPoint.dll


  RasterEdge.XImage.Raster.dll


  RasterEdge.XImage.Raster.Core.dll


  RasterEdge.XDoc.Office.Inner.Common.dll


  RasterEdge.XDoc.Office.Inner..Office03.dll


Using Namespace(Extra)


  RasterEdge.XDoc.PowerPoint;


  RasterEdge.Imaging.Basic;


  RasterEdge.Imaging.Raster.Core;




Dim  docx As PPTXDocument = New PPTXDocument("C:\\Sample.pptx")
Dim page As BasePage = docx.GetPage(0)
Dim  image As REImage = New REImage(barcode.ToImage())
page.AddImage(image, New PointF(100F, 100F))
docx.Save("C:\\Sample_Barcode.pptx")