Skip to content

Instantly share code, notes, and snippets.

@follesoe
Created December 24, 2010 14:45
Show Gist options
  • Save follesoe/754304 to your computer and use it in GitHub Desktop.
Save follesoe/754304 to your computer and use it in GitHub Desktop.
Integrating Virtual Earth with Outlook 2007
private void webBrowser_DocumentCompleted(object sender, WebBrowserDocumentCompletedEventArgs e)
{
Outlook.ContactItem currentContact = (Outlook.ContactItem)this.OutlookItem;
string address = currentContact.BusinessAddress.Replace("\r\n", ",");
ExecuteScript("FindLocation", address, currentContact.FullName, currentContact.BusinessAddress);
}
private void ExecuteScript(string scriptName, params object[] parameters)
{
webBrowser.Document.InvokeScript(scriptName, parameters);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment