C#: Online Guide
How To: Barcode Generator
QR Code
QR Code
  |  
Home ›› XImage.Barcode Generator ›› VB Barcode Generator: QR Code

VB Imaging - QR Code Image Generation Tutorial


Create QR Code Barcode on VB Images, TIFF, PDF, Word, Excel and PowerPoint




VB.NET Imaging - QR Code Barcode Add-on Overview



RasterEdge .NET Imaging Barcode Creating SDK provides flexible and robust QR Code Barcode Add-on SDK control to help VB.NET developers generate QR code on images (like PNG, GIF, BMP, JPEG & TIFF) and documents (like PDF, TIFF & Word). This fully programmed QR Code Creating library can be seamlessly implemented into any VB.NET Windows and Web projects. It is compatible with Microsoft Visual Studio 2005, 2008, 2010 & 2012 and .NET Framework 2.0, 3.0, 3.5, 4.0 & 4.5. vb.net pdf merge and resize, c# generate pdf with images, c# itextsharp pdf add image, how to make a pdf of a page in c#, microsoft print to pdf c#, vb.net search pdf for text, convert pdf to png vb.net.


Related .net document control helps:
c# asp.net dicom viewer: ASP.NET Dicom Document Viewer Control: view, annotate dicom imaging files online in ASP.NET
c# asp.net tiff viewer: ASP.NET Tiff Viewer: view, annotate multipage Tiff images in ASP.NET MVC, WebForms using C# Control
asp.net document viewer open source: EdgeDoc:ASP.NET Document Viewer C# Control: Open, view, annotate, redact, convert documents online in C#, VB.NET, AS...
c# asp.net mvc document viewer: ASP.NET MVC Document Viewer: view, annotate, redact files on ASP.NET MVC web projects
c# asp.net text file viewer: ASP.NET Text file viewer in MVC, WebForms: Open, view, annotate, convert txt files in C# ASP.NET
c# asp.net pdf editor: EdgePDF: ASP.NET PDF Editor Web Control: Online view, annotate, redact, edit, process, convert PDF documents
asp.net pdf viewer using c#: ASP.NET PDF Viewer Control: view, navigate, zoom Adobe PDF document in C# ASP.NET


Layout of VB application QR code creation tutorial:


Brief information on QR Code Image Barcode Creating SDK features within VB application


How to: create QR code on various image files with VB sample code


How to: create and define QR code to single or multi-page document files in VB program


How to: generate and customize designed QR code in VB.NET platform




QR Code Image Barcode Creating SDK Features in VB.NET



By using this .NET QR Code barcode generator add-on component, developers can create & draw scannable QR Codes on different image files (png, jpeg, gif and bmp) and insert them into common documents like TIFF, PDF, MS Word, Excel and PowerPoint using Visual VB.NET programming code. Following are some barcoding features offered by this .NET QR Code encoder DLL. asp.net c# pdf viewer control, pdf preview in asp net c# example, open word file in asp.net c#, asp.net mvc create pdf from view, edit pdf in asp.net mvc, asp.net multipage tiff viewer, asp net remove text from pdf javascript.


Detailed features are listed below:


Easy to install and integrate QR Code Barcode Add-on control into VB.NET document imaging project


Support 4 error correction levels for QR code creation, including low, middle, quality and high


High customizations on related QR code barcode size, like X dimension, barcode width & height and multiple barcode margins


Adjustable QR code barcode resolution to fulfill specific requirements in VB class


Able to change barcode orientation at 0, 90, 180 & 270 degrees with simple VB programming code


Customizable barcode back and fore colors to achieve personalized effect


Save the encoded QR code as any supported image and document format with VB demo code


QR code generating runtime royalty free license is offered with reasonable price




VB Code for Customizing QR Code Barcode Generation



You can easily generator QR Code barcode and save it  to image files/object using this VB.NET barcode generator control. The following steps will show how to create a QR Code 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 QR Code barcode.




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





VB Imaging - Draw QR Code on Image File



This VB QR Code barcode generator add-on supports drawing QR Code two-dimensional bar code at any specified location on a target image file. The supported image formats include png, gif, jpeg and bmp. Copy Visual VB sample code below to your .NET imaging application to create and insert a QR Code bar code on a sample png image.




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





VB Imaging - Create QR Code on Document Page



Apart from generating QR Code on image files, VB.NET barcode creator plug-in of RasterEdge DocImage SDK for .NET can also create QR Code in common document files, like TIFF, PDF, Word, Excel and PowerPoint. Using this VB.NET barcode creating control, you can also customize the location of generated QR Code barcode on target document file.



Generate QR Code on VB PDF Page



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")




Create QR Code on VB TIFF File



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")




Draw QR Code on VB Word Document



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 QR Code on VB Excel Sheet



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")




Draw QR Code Barcode on VB PowerPoint Slide



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")