VB.NET QR Code Generator Data Encoding Tutorial

sample source code to input valid data and generate linear QR Code images in VB.NET

VB.NET QR Code Barcode Generator Overview

VB.NET QR Code Barcode Generator is a mature linear barcode generation component designed for VB.NET developers who are necessary of adding the QR Code barcode printing functions into their .NET projects. It is compatible with the .NET 2.0, 3.0, 3.5, 4.0 and is able to create QR Code barcodes in ASP.NET Web projects, .NET WinForms apps as well as .NET reporting services (SSRS) projects using the Visual Basic .NET. It is simple to encode valid digits into the QR Code barcode symbology by Visual Basic .NET.

How to generate, print barcode using .NET, Java sdk library control with example project source code free download:

OnBarcode.com also provides more details about how to set QR Code barcode size and image in Barcode Generator Control on VB.NET:


QR Code Data Encoding in VB.NET

QR Code Valid Character Set

The QR Code, also known as Denso Barcode, QRCode, Quick Response Code, is capable of encoding a large number of data into the barcode symbology. Three elements, data mode, qr code version, and error correction level, define the number of characters encoded in the qr code symbology.

The data mode, or datatype, indicates the encoded character set. There are four data modes based on the latest QR Code standard, numeric, alphanumeric, byte, and Kanji. Among the four, numeric mode only encodes numbers 0 through 9 and has maximal data storage up to 7,089 characters. The alphanumeric mode, maximal storage up to 4,296 characters, encodes $, space, %, *, +, -, ., /, :, 0 through 9, A through Z. the byte mode encodes 8-bit bytes with a maximal storage up to 2,953 characters. The Kanji mode encodes up to 1,817 characters maximally.

QR Code version ranges from 1 to 40, which shows the total symbol dimensions. Version 1 has 21 cells horizontally and 21 cells vertically. And version 40 has 177*177 cells which has the largest capacities.

The qr code error correction could detect and correct multiple random symbol errors. There are four error correction levels which are L (low), M (Medium), Q (Quality), and H (high). A higher error correction level often has a less storage capacity.

However, the QR Code Add-in for Word provides an Auto data mode so that the users could input the message data into the data box and export a quality qr code image without considering the details of data type.

Encode data into QR Code using VB.NET

Sample for encoding data into QR Code via VB.NET

Dim barcode As QRCode = New QRCode

barcode.Data = "http://www.onbarcode.com/"

barcode.DataMode = QRCodeDataMode.AlphaNumeric

barcode.Version = QRCodeVersion.V1

barcode.ECL = QRCodeECL.L

barcode.ProcessTilde = True

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

QR Code Barcode Symbology

The following qr code image encodes the url "http://www.onbarcode.com/". It chooses auto mode and version 1 with level M error correction. And it looks like:

OnBarcode is a market-leading provider of barcode imaging generator, reader controls and components for ASP.NET, Windows Forms, WPF, as well Java, Android, iOS (iPhone, iPad) across all major enterprise development platforms. We provides comprehensive tutorials and how-tos for various linear, 2d barcode information, such as C# in ASP.NET, C# .NET, C# Barcode Encoding, C# Barcode Image, VB.NET in ASP.NET, VB.NET Winforms, VB.NET Barcode Encoding. OnBarcode barcode products are supported by RasterEdge ASP.NET Document Viewer, which supports ASP.NET PDF Viewer, ASP.NET MVC Document Viewer, ASP.NET PDF Editor, MVC PDF Viewer. And provide high quality C# Convert PDF to Tiff, C# Convert PDF to Word, C# Convert PDF to HTML, C# Convert PDF to Jpeg images, and their easy and simple documents, like C# PDF SDK, C# extract text from PDF, C# Compress PDF, Print PDF in C# and C# extract image from PDF.
Terms of Use | Privacy Policy
Copyright © OnBarcode.com . All rights reserved.