View Single Post
  #2  
Old April 3rd 07, 12:19 PM posted to microsoft.public.outlook.program_forms
Sue Mosher [MVP-Outlook]
external usenet poster
 
Posts: 11,651
Default Outlook 2007 Addin - exception error

That's not a link at all. As Chapters 11 and 17 explain, it's the schema name for a hidden property, the one that displays the Internet headers for a message. Not every item (not even every message) has that property, so you should be prepared to handle an error returned by GetProperty. Chapter 17 explains in more detail.

Also, please note that you posted in the forum on Outlook forms. There is a newsgroup specifically for general Outlook programming issues "down the hall" at microsoft.public.outlook.program_vba or, via web interface, at http://www.microsoft.com/office/comm....program_v ba

--
Sue Mosher, Outlook MVP
Author of Configuring Microsoft Outlook 2003
http://www.turtleflock.com/olconfig/index.htm
and Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers
http://www.outlookcode.com/jumpstart.aspx

"Cresta" wrote in message news
Hello and Help! (I'm new to vb addins)
I have just started to work my way throught the Micorosft Press book on
Programming Applications for MSO Outlook 2007. Have followed the instructions
to download the vb samples/addins and have installed them successfully.
Chapter1 example runs a form with a list of chapter examples, when I run the
first example in the book, the following error occurs;

"Exception has been thrown by the target of an invocation."

I have trawled the internet, and some are indicating that if there is an
internet link in the code, these errors are happening. There is a link to
"http://schemas.microsoft.com/mapi/proptag/0x007D001E" .
Could this be the problem, and is there a fix for it.
Thanks

Ads