Daniel Palme

Daniel Palme

.NET consultant from Germany.

Blog > VSTO - Importing Google contacts to Outlook 2007

VSTO - Importing Google contacts to Outlook 2007

For a long time I have been using Outlook to manage my contacts and appointments. I always synchronized my mobile phone with Outlook. After buying an Android device things have changed.
Now I use Google Contacts and Google Calendar to manage my contacts and appointments. Since I still use Outlook I need an easy way to synchronize Google with Outlook. Google provides GoogleCalendarSync to synchronize your calendar, but synchronizing contacts is only available for business customers.
In this post I will provide an Outlook addin which imports your Google contacts to Outlook.

Features

The addin imports Google contacts with the the following details:

  • Name
  • Addresses
  • Emailaddresses
  • Phonenumbers
  • Website
  • Instant Messengers
  • Birthday/Anniversary
  • Content
  • Photo

After installing the addin a new button is placed in the default command bar, which lets you start the import:

Outlook Toolbar

Prerequisites

Before installing the addin make sure the following components are installed:

Source code

In addition to the source code I also provide a setup. The setup was created according to this manual.
The plugin may not work in the English version of Outlook, since I use the following code to get a reference to the main command bar:

var mainMenuBar = this.Application.ActiveExplorer().CommandBars["Standard"];

If you know a better approach, let me know.

Downloads

GoogleSync_Source.zip
GoogleSyncSetup.msi


Subscribe to RSS Feed

Tags: .NET, C#, VSTO
 

Related posts

 

New comment

:

:

:

:

 

Comments

#1
ophir

ophir

12/01/2011

Hi,
i've installed the prerequisites but the installer is still prompting me to install .net 4 even after ive done it and then the installer doesnt continue at all...is this something you're aware of?
im not able to process the googlesync installer...
thanks
 
#2
Daniel

Daniel

12/01/2011

@ophir:
You have to install the Full .NET Framework 4. I updated the article accordingly.
 
#3
SalkY

SalkY

03/29/2014

Excelent article :)