VB.NET QR Code Generator Library SDK
Integration & Developer Guide of QR Code Barcode Generation in VB.NET

Generate 2d barcode QR Code images in Visual Basic .NET with complete sample VB.NET source code

  • Generate, create QR Code and GS1 QR Code in Visual Basic .NET applications
  • Easy to install & integrate 2d barcode QR Code generation library SDK into VB.NET developments
  • Generate over 30 linear, 2d barcode images in VB.NET including VB.NET Data Matrix, VB.NET PDF417, VB.NET Code 39, VB.NET Code 128
  • Generate QR Code images in VB.NET class library
  • Create barcode QR Code in VB.NET ASP.NET web application, webform, webpage
  • Print QR Code barcode in VB.NET Windows Form project
  • Draw QR Code in SQL Server Reporting Services (SSRS) & Crystal Reports for .NET projects
  • Easy to encode QR Code images to jpeg, gif, png, tiff, bitmap files in VB.NET program



VB.NET QR Code Generator Introduction

Top
QR Code, also known as Denso Barcode, QRCode, Quick Response Code, is a kind of 2D (two dimensional) barcode widely used today.
Using VB.NET QR Code Generator to create QR Code barcodes in VB.NET program is a simple and easy job. VB.NET QR Code Generator control is easy to install with a single .NET Barcode generation control. It is easy to generate QR Code barcodes in VB.NET class with detailed VB.NET QR Code settings document and complete demo for QR Code generation in VB.NET provided in this article.

QR Code Generators

OnBarcode provides several QR Code Generator components and software, including QR Code Generator, QR Code .NET, QR Code Java, QR Code C#, QR Code in BIRT reports, QR Code in RDLC reports, QR Code in Crystal reports, QR Code ASP.NET.


























Create QR-Code Barcodes in VB.NET

Top

Creating QR-Code barcode in VB.NET class example:

   Imports OnBarcode.Barcode


Dim barcode As QRCode = New QRCode

' QRCode Barcode Basic Settings

' QRCode Valid data char set:
' numeric data (digits 0 - 9);
' alphanumeric data (digits 0 - 9; upper case letters A -Z;
' nine other characters: space, $ % * + - . / : );
' byte data (default: ISO/IEC 8859-1);
' Kanji(characters)
barcode.Data = "112233445566"

barcode.DataMode = QRCodeDataMode.Auto
barcode.Version = QRCodeVersion.V1
barcode.ECL = QRCodeECL.L

' Set the ProcessTilde property to true, if you want use the tilde character "~"
' to specify special characters in the input data. Default is false.
'
' 1) 1-byte character: ~0dd/~1dd/~2dd (character value from 000 ~ 255);
' ASCII character '~' is presented by ~126;Strings from "~256" to "~299" are unused
' modified to FS, GS, RS and US respectively.
' 2) 2-byte character (Unicode): ~6ddddd (character value from 00000 ~ 65535)
' Strings from "~665536" to "~699999" are unused
' 3) for GS1 AI Code:
' ~ai2: AI with 2 digits
' ~ai3: AI with 3 digits
' ~ai4: AI with 4 digits
' ~ai5: AI with 5 digits
' ~ai6: AI with 6 digits
' ~ai7: AI with 7 digits
' 4) ECI: ~7dddddd (valid value of dddddd from 000000 to 999999)
' 5) SJIS: from ~9ddddd (Shift JIS 0x8140 ~ 0x9FFC and 0xE040 ~ 0xEBBF)
barcode.ProcessTilde = True

' Barcode Size Related Settings
barcode.UOM = UnitOfMeasure.PIXEL
barcode.X = 3
barcode.LeftMargin = 0
barcode.RightMargin = 0
barcode.TopMargin = 0
barcode.BottomMargin = 0
barcode.Resolution = 96
barcode.Rotate = Rotate.Rotate0

' Image format setting
barcode.ImageFormat = System.Drawing.Imaging.ImageFormat.Gif()

barcode.drawBarcode("c://qr-code.gif")








Common Asked Questions

What does QR stand for in code?

QR stands for "quick response", and QR Code is a 2-dimensional matrix barcode on steroids. The QR code stores data information both horizontally and vertically. OnBarcode VB.NET Barcode Generator library supports QR Code generation in Visual Basic .NET class library, console, WinForms, WPF windows applications.

What is the smallest size a QR Code can be printed?

If your QR Code will be scanned by QR Code scanner devices, the minimum size for a QR Code is 1 x 1 cm. However if the QR Code will be scanned by smartphones (iOS or Android), most the barcode scanner app requires that the minimum size for a QR Code is 2 x 2 cm.

Using VB.NET QR Code Generator library, you can create and customize the printed QR Code dimension size through methods QRCode.setBarcodeWidth() in Visual Basic .NET class.

How to create a QR Code for a picture?

To create a QR code from a photo or an image in VB.NET project
  • Convert the photo image raw data into byte array
  • Create a QR Code object
  • Set the QR Code data mode in method setDataMode() with QRCode.M_BYTE as parameter
  • Set setProcessTilde() with value true
  • Set QR Code encoding data through method setData()
  • Print and output QR Code to an image file

Does the color of a QR Code matter?

Choose whatever colors you want but always make sure the back and fore colors have strong contrast. We suggest at least 70% darker to ensure reliable scanning, and always scan and verify your QR code to make sure it works using the colors you've chosen.

In VB.NET class, you can create and initiate a QRCode object to generate QR Code barcode images, and customize the QR Code bar color through method setForeColor(), and the QR Code background color through method setBackColor(), in VB.NET class QRCode

How much data can be stored in a QR code?

A standard QR Code can store up to three kilobytes (KB) of data. A QR Code symbol with version 40-L can hold the following data information:
  • numeric data: 7,089 characters
  • alphanumeric data: 4,296 characters
  • byte data: 2,953 characters
  • Kanji data: 1,817 characters
In VB.NET class, you can create and initiate a QRCode object to generate QR Code barcode images, and set the encode the data through method setData().

What is the difference between a barcode and a QR Code?

Barcode is usually known as 1d or linear barcode symbology, which can store limited number of characters. QR Code or Quick Response code, is a type of two-dimensional code that can hold more than 4,200 alphanumeric characters.

Using OnBarcode VB.NET Barcode Generator library, you can create QR Code (standard, GS1, Micro, Macro versions) and other 20+ 2d, 1d barcodes such as Code 128, Data Matrix, EAN/UPC barcodes in Visual Basic .NET class library, console, WinForms, WPF windows applications.




































Terms of Use | Privacy Policy
Copyright © OnBarcode.com . All rights reserved.