Outlook 2007 Addin - exception error

C

Cresta

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
 
S

Sue Mosher [MVP-Outlook]

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/community/en-us/default.mspx?dg=microsoft.public.outlook.program_vba

--
Sue Mosher, Outlook MVP
Author of Configuring Microsoft Outlook 2003

and Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top