Learn how to read vcard from QR code in VB.NET with this source code sample. ByteScout BarCode Reader SDK is the SDK for reading of barcodes from PDF, images and live camera or video. Almost every common type like Code 39, Code 128, GS1, UPC, QR Code, Datamatrix, PDF417 and many others are supported. Supports noisy and defective images and docs. Includes optional documents splitter and merger for pdf and tiff based on found barcodess. Batch mode is supported for superior performance using multiple threads. Decoded values are easily exported to JSON, CSV, XML and to custom format. It can read vcard from QR code in VB.NET.
This rich sample source code in VB.NET for ByteScout BarCode Reader SDK includes the number of functions and options you should do calling the API to read vcard from QR code. Follow the instructions from the scratch to work and copy the VB.NET code. Enjoy writing a code with ready-to-use sample VB.NET codes.
Free trial version of ByteScout BarCode Reader SDK is available on our website. Documentation and source code samples are included.
On-demand (REST Web API) version:
Web API (on-demand version)
On-premise offline SDK for Windows:
60 Day Free Trial (on-premise)
Imports System.IO Imports Bytescout.BarCodeReader Imports Thought.vCards Module Module1 ''' <summary> ''' This example demonstrates reading of QR Code encoded vCard. ''' It uses vCard library by David Pinch: ''' ''' vCard Class Library for .NET (Version 0.4; LGPL license) ''' Copyright (c) 2007-2009 David Pinch ''' http://www.thoughtproject.com/Libraries/vCard/ ''' </summary> Sub Main() ' Create Bytescout.BarCodeReader.Reader instance Using reader As New Reader ' Enable QR Code decoding reader.BarcodeTypesToFind.QRCode = True ' ----------------------------------------------------------------------- ' NOTE: We can read barcodes from specific page to increase performance . ' For sample please refer to "Decoding barcodes from PDF by pages" program. ' ----------------------------------------------------------------------- ' Decode QR Code from image Dim barcodes = reader.ReadFrom("sample_vcard.gif") If barcodes.Length > 0 Then Dim vcardBarcode = barcodes(0) ' Decode vCard information from barcode value Dim stringReader As New StringReader(vcardBarcode.Value) Dim vCard As New vCard(stringReader) ' Display some decoded info: Console.WriteLine("GivenName: " + vCard.GivenName) Console.WriteLine("FamilyName: " + vCard.FamilyName) Console.WriteLine("Organization: " + vCard.Organization) Console.WriteLine("Title: " + vCard.Title) Console.WriteLine("Phone: " & vCard.Phones(0).FullNumber) Console.WriteLine("EmailAddresses: " & vCard.EmailAddresses(0).Address) Console.WriteLine("DeliveryAddress: " & vCard.DeliveryAddresses(0).Street & " " & vCard.DeliveryAddresses(0).City & " " & _ vCard.DeliveryAddresses(0).Region & " " & vCard.DeliveryAddresses(0).PostalCode & " " & vCard.DeliveryAddresses(0).Country) End If End Using Console.WriteLine() Console.WriteLine("Press any key...") Console.ReadKey() End Sub End Module
60 Day Free Trial or Visit ByteScout BarCode Reader SDK Home Page
Explore ByteScout BarCode Reader SDK Documentation
Explore Samples
Sign Up for ByteScout BarCode Reader SDK Online Training
Get Your API Key
Explore Web API Docs
Explore Web API Samples
60 Day Free Trial or Visit ByteScout BarCode Reader SDK Home Page
Explore ByteScout BarCode Reader SDK Documentation
Explore Samples
Sign Up for ByteScout BarCode Reader SDK Online Training
Get Your API Key
Explore Web API Docs
Explore Web API Samples
also available as: