Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Outlook / Programming Forms / December 2007

Tip: Looking for answers? Try searching our database.

Exception

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Jason - 27 Dec 2007 22:38 GMT
A message box appears when I try and send a meessage from my Win-Form through
Outlook asking for access to send an email.  It works fine if I click
"Accept", but I receive an exception when I click "Deny".  Is a try/catch the
only way I can handle this?  I would not expect any exceptions when I click
the "Deny" button.

For reference, here is the exception: "Operation aborted (Exception from
HRESULT: 0x80004004 (E_ABORT))"

Thanks
Sue Mosher [MVP-Outlook] - 28 Dec 2007 04:31 GMT
If you click Deny, Outlook raises an error. Therefore, your code should handle that exception.

Signature

Sue Mosher, Outlook MVP
  Author of Microsoft Outlook 2007 Programming:
    Jumpstart for Power Users and Administrators
   http://www.outlookcode.com/article.aspx?id=54

>A message box appears when I try and send a meessage from my Win-Form through
> Outlook asking for access to send an email.  It works fine if I click
[quoted text clipped - 6 lines]
>
> Thanks
Ken Slovak - [MVP - Outlook] - 28 Dec 2007 14:43 GMT
If you're getting an exception a try...catch block is the way to go to avoid
an unhandled exception.

You don't say what versions of Outlook you are supporting or anything else
much about where and how the code is running, so it's hard to say anything
else. But I'd be looking to avoid the security prompts completely and avoid
that whole situation instead of leaving it to the user to handle the
security prompt.

See http://www.outlookcode.com/article.aspx?id=52 for information on
avoiding the security entirely.

Signature

Ken Slovak
[MVP - Outlook]
http://www.slovaktech.com
Author: Professional Programming Outlook 2007
Reminder Manager, Extended Reminders, Attachment Options
http://www.slovaktech.com/products.htm

>A message box appears when I try and send a meessage from my Win-Form
>through
[quoted text clipped - 9 lines]
>
> Thanks
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.