ByteScout BarCode Generator SDK - VB.NET - Generate vCard QR Code - 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 BarCode Generator SDK – VB.NET – Generate vCard QR Code

  • Home
  • /
  • Articles
  • /
  • ByteScout BarCode Generator SDK – VB.NET – Generate vCard QR Code

How to generate vcard QR code in VB.NET using ByteScout Barcode SDK

The tutorial below will demonstrate how to generate vcard QR code in VB.NET

Source code documentation samples provide quick and easy way to add a required functionality into your application. ByteScout Barcode SDK can generate vcard QR code. It can be used from VB.NET. ByteScout Barcode SDK is the robost library (Software Development Kit) that is designed for automatic generation of high-quality barcodes for printing, electronic documents and pdf. All popular barcode types are supported from Code 39 and Code 129 to QR Code, UPC, GS1, GS-128, Datamatrix, PDF417, Maxicode and many others. Provides support for full customization of fonts, colors, output and printing sizes. Special tools are included to verify output quality and printing quality. Can add generated barcode into new or existing documents, images and PDF.

You will save a lot of time on writing and testing code as you may just take the VB.NET code from ByteScout Barcode SDK for generate vcard QR code below and use it in your application. Follow the instructions from the scratch to work and copy the VB.NET code. Enjoy writing a code with ready-to-use sample codes in VB.NET.

You can download free trial version of ByteScout Barcode SDK from our website to see and try many others source code samples for VB.NET.

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.Drawing.Imaging Imports System.IO Imports Bytescout.BarCode Imports Thought.vCards Module Module1 ''' <summary> ''' This example demonstrates generation 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() ' Generate vCard Dim vCard As New vCard() vCard.GivenName = "Forrest" vCard.FamilyName = "Gump" vCard.Organization = "Bubba Gump Shrimp Co." vCard.Title = "Shrimp Man" vCard.Phones.Add(New vCardPhone("(111) 555-1212", vCardPhoneTypes.Home)) vCard.EmailAddresses.Add(New vCardEmailAddress("forrestgump@example.com", vCardEmailAddressType.Internet)) Dim address As New vCardDeliveryAddress() address.AddressType = vCardDeliveryAddressTypes.Home address.Street = "100 Waters Edge" address.City = "Baytown" address.Region = "LA" address.PostalCode = "30314" address.Country = "United States of America" vCard.DeliveryAddresses.Add(address) ' Save vCard data to string Dim writer As New vCardStandardWriter() Dim stringWriter As New StringWriter() writer.Write(vCard, stringWriter) ' Create Bytescout.Barcode instance Using barcode As New Barcode ' Set barcode type barcode.Symbology = SymbologyType.QRCode ' Set barcode value barcode.Value = stringWriter.ToString() ' Save barcode to image barcode.SaveImage("result.png", ImageFormat.Png) ' Open generated barcode image in default associated application Process.Start("result.png") End Using End Sub End Module

ON-PREMISE OFFLINE SDK

60 Day Free Trial or Visit ByteScout Barcode SDK Home Page

Explore ByteScout Barcode SDK Documentation

Explore Samples

Sign Up for ByteScout Barcode SDK 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 Barcode SDK Home Page

Explore ByteScout Barcode SDK Documentation

Explore Samples

Sign Up for ByteScout Barcode SDK Online Training

ON-DEMAND REST WEB API

Get Your API Key

Explore Web API Docs

Explore Web API Samples

Tutorials:

prev
next