ByteScout Premium Suite - VB.NET - Read vcard from qr code with barcode reader sdk - ByteScout
Announcement
Our ByteScout SDK products are sunsetting as we focus on expanding new solutions.
Learn More Open modal
Close modal
Announcement Important Update
ByteScout SDK Sunsetting Notice
Our ByteScout SDK products are sunsetting as we focus on our new & improved solutions. Thank you for being part of our journey, and we look forward to supporting you in this next chapter!

ByteScout Premium Suite – VB.NET – Read vcard from qr code with barcode reader sdk

  • Home
  • /
  • Articles
  • /
  • ByteScout Premium Suite – VB.NET – Read vcard from qr code with barcode reader sdk

How to read vcard from qr code with barcode reader sdk in VB.NET using ByteScout Premium Suite

How to write a robust code in VB.NET to read vcard from qr code with barcode reader sdk with this step-by-step tutorial

This sample source code below will display you how to read vcard from qr code with barcode reader sdk in VB.NET. ByteScout Premium Suite: the bundle that includes twelve SDK products from ByteScout including tools and components for PDF, barcodes, spreadsheets, screen video recording. It can read vcard from qr code with barcode reader sdk in VB.NET.

Want to quickly learn? This fast application programming interfaces of ByteScout Premium Suite for VB.NET plus the guidelines and the code below will help you quickly learn how to read vcard from qr code with barcode reader sdk. Just copy and paste the code into your VB.NET application’s code and follow the instructions. Further improvement of the code will make it more robust.

The trial version of ByteScout Premium Suite can be downloaded for free from our website. It also includes source code samples for VB.NET and other programming languages.

On-demand (REST Web API) version:
 Web API (on-demand version)

On-premise offline SDK for Windows:
 60 Day Free Trial (on-premise)

Module1.vb
      
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

ON-PREMISE OFFLINE SDK

60 Day Free Trial or Visit ByteScout Premium Suite Home Page

Explore ByteScout Premium Suite Documentation

Explore Samples

Sign Up for ByteScout Premium Suite Online Training

ON-DEMAND REST WEB API

Get Your API Key

Explore Web API Docs

Explore Web API Samples

VIDEO

ON-PREMISE OFFLINE SDK

60 Day Free Trial or Visit ByteScout Premium Suite Home Page

Explore ByteScout Premium Suite Documentation

Explore Samples

Sign Up for ByteScout Premium Suite Online Training

ON-DEMAND REST WEB API

Get Your API Key

Explore Web API Docs

Explore Web API Samples

Tutorials:

prev
next