QR Code FAQ in VB.NET Barcode Generator SDK

Draw & print QR Code and adjust QR Code data, image, size, and other properties with VB source code available
Barcode in VB.NET > 2D > QR Code FAQ
Create QR Code Barcode Image Using VB.NET Class Library DLL - QR Code FAQ in Visual Basic.NET
VB.NET QR Code barcode library software is a powerful & robust .NET component DLL to generate dynamic QR Code images in Visual Basic.NET projects with VB.NET programming and coding. Free sample VB.NET code is provided with step-by-step guide, source code is available with purchase of developer license. Any development that compatible with VB.NET programming language is able to use this barcode DLL with free trial to embed QR Code dynamically.
This article gives detail information of QR Code settings in VB.NET projects using Visual Basic class library from the following aspects:
  • Create QR Code Barcode Image Using VB.NET Class Library - QR Code Data Encoding
  • Create QR Code Barcode Image Using VB.NET Class Library - QR Code Special Settings
  • Create QR Code Barcode Image Using VB.NET Class Library - QR Code Size Adjustment
  • Create QR Code Barcode Image Using VB.NET Class Library - QR Code Image Customization
  • Create QR Code Barcode Image Using VB.NET Class Library - QR Code Solution Project Support
Create QR Code Barcode Image Using VB.NET Class Library DLL - QR Code Data Encoding
2D QR Code Barcode Valid Data
  • 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
QR Code VB.NET Sample Code:
barcode.Symbol = Terrek.Barcode.BarcodeSymbol.QRCode
barcode.BarcodeData = "Terrek_QR_Code_VB.NET"
Create QR Code Barcode Image Using VB.NET Class Library DLL - QR Code Special Settings
QR Code Data Mode
QR Code is capable of encoding "Numeric", "Alphanumeric", "Byte" and "Kanji" characters. For easy and fast encoding of QR Code in C# class, Terrek has designed "Auto" data mode. Programmers may change the QR Code data mode through QRCodeDataMode property.
QR Code VB.NET Sample Code:
barcode.QRCodeDataMode= Terrek.Barcode.QRCodeDataMode.Auto
QR Code Version
QR Code is presented as square shape; the whole image size is changed from Version 1 to Version 40. Programmers may change QR Code version through QRCodeVersion property.
QR Code VB.NET Sample Code:
barcode. QRVersion = Terrek.Barcode.QRCodeVersion.V11
QR Code Error Correction Level
QR Code Four levels of Reed-Solomon error correction (referred to as L, M, Q and H in increasing order of capacity) allowing recovery of: L (7%), M (15%), Q (25%), and H (30%). The highest corretion level is, the lower capacity of QR Code. Programmers may change this error correction level through QRCodeECL property.
QR Code VB.NET Sample Code:
barcode.QRCodeECL = Terrek.Barcode.QRCodeECL.H
QR Code Extended Channel Interpretations (ECIs)
This mechanism enables data using character sets other than the default encodable set (e.g. Arabic, Cyrillic, Greek) and other data interpretations (e.g. compacted data using defined compression schemes) or other industry-specific requirements to be encoded. Developers may change the ECI function by QRCodeECI property. The type is int. valid values are from 000000 to 999999.
QR Code VB.NET Sample Code:
barcode.QRCodeECI=3
QR Code FNC1 Mode
FNC1 mode is used for messages containing specific data formats. In the "1st position" it designates data formatted in accordance with the GS1 General Specifications. In the "2nd position" it designates data formatted in accordance with a specific industry application previously agreed with AIM Inc. Set this property by changing FNC1.
QR Code VB.NET Sample Code:
barcode.FNC1 = Terrek.Barcode.FNC1.FNC1_1
QR Code Tilde Function
Set the Tilde property to true, if you want use the tilde character "~" to specify special characters in the input data. Default is false. ~NNN: is used to represent the ASCII character with the value of NNN.
QR Code VB.NET Sample Code:
barcode.Tilde = True
Create QR Code Barcode Image Using VB.NET Class Library DLL - QR Code Size Adjustment
QR Code UOM (Unit of Measure)
Set property MeasuringUnit for properties BarWidth, BarHeight, MarginL and MarginT. Valid values are PIXEL, CM and INCH. Default is PIXEL. With this UOM setting, users can control the whole barcode size to a unique type.
QR Code VB.NET Sample Code:
barcode.MeasuringUnit = Terrek.Barcode.MeasuringUnit.INCH
QR Code Module Size
QR Code module size refers to the BarWidth and BarHeight of a module bar. When developers need to create barcodes with a fixed bar width, these two properties need to be implemented. With the ImageResize applied, image width & image height are changed according to the customization of bar width and bar height. The type is float.
QR Code VB.NET Sample Code:
barcode.BarWidth = 2
barcode.BarHeight = 80
QR Code Image Size
QR Code image size refers to the whole barcode image size including image width and image height. If the module size is unknown, you can set the ImageHeight and ImageWidth directly with the applying of ImageResize to true. The generated Code 128 is 100% compatible with International Standard ISO/IEC 18004 (Second edition 2006-09-01).
QR Code VB.NET Sample Code:
barcode.ImageWidth = 80
barcode.ImageHeight = 80
QR Code Margin Size
Increasing the width of margins around the symbol is one way to enhance the readability of the QR Code barcode image. The barcode control library SDK set the left, right, top, and bottom margins separately with float values. The default value is 0.
QR Code VB.NET Sample Code:
barcode.MarginL = 6
barcode.MarginR = 6
barcode.MarginT = 6
barcode.MarginB = 6
Create QR Code Barcode Image Using VB.NET Class Library DLL - QR Code Image Customization
QR Code Image Format
QR Code generated in Visual Basic.NET programs with barcode control software can be displayed as Gif, Tiff, Bmp, Png, Jpeg and other image formats. Programmers may change the format using BarcodeFormat property.
QR Code VB.NET Sample Code:
barcode.BarcodeFormat = System.Drawing.Imaging.ImageFormat.Png
barcode.SaveAsImage("C:\ QR Code.png")
QR Code Image Resolution
DPI (Dots per inch) is used commonly as the measure of printing resolution. The resolution of image generated by QR Code generator SDK could be managed with DPI and compatible with all printers. Type is int. Default is 96 dpi. Programmers can set resolution with DotsPerInch property.
QR Code VB.NET Sample Code:
barcode.DotsPerInch = 78
QR Code Image Position
The created QR Code is flexible to change the placement in VB.NET projects with source. By customizing the BarAlign properly, the image is presented left, right or center in documents or projects. By changing Rotation property, the image can be rotated to 90, 180, and 270 degrees. The default is 0 degree.
QR Code VB.NET Sample Code:
barcode.Rotation = Terrek.Barcode.Rotation.Degree270
barcode.BarAlign = Terrek.Barcode.BarAlign.Left
QR Code Image Color
It is able to change barcode colors with barcode library software DLL using VB.NET class. Both background color and foreground color are easy to be changed by manipulating ImageColor and BarColor respectively.
QR Code VB.NET Sample Code:
barcode.ImageColor = Color.White
barcode.BarColor = Color.Black
Create QR Code Barcode Image Using VB.NET Class Library DLL - QR Code Development Projects
Using Visual Basic.NET to generate QR Code barcode image, it is entitled to print and encode QR Code images in various VB.NET projects. These following solution projects are able to insert and development QR Code with barcode free trial DLL for VB.NET. Tutorial to create & print barcode images using VB.NET.
  • Windows Forms Application (design-time and runtime support)
  • Visual Basic Console Application (runtime support)
  • Visual Basic Class Library (runtime support)
  • Windows Service (runtime support)
  • ASP.NET Applications (design-time and runtime support)
  • Web Service (runtime support)
  • Crystal Report for .NET (runtime support)
  • Reporting Service Applications (design-time and runtime support)