Created
December 24, 2010 14:45
-
-
Save follesoe/754304 to your computer and use it in GitHub Desktop.
Integrating Virtual Earth with Outlook 2007
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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