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 Add-Ins / November 2005

Tip: Looking for answers? Try searching our database.

Using mailObj.save while attachment is opened

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
PuppetMaster - 29 Nov 2005 17:18 GMT
I currently have a COM addin written in VB6 for Outlook 2002. I am
using the mailObj.save function which works fine, but if the mail
contains an attachment that the user has open at the same time, Outlook
displays a message: "An attachment to this message may be currently
open in another program. If you continue, you may lose any changes you
have made to the attachment using the other program. Do you want to
continue?"

Is there any way to programatically detects for this situation, before
Outlook shows the above message?

TIA
Ken Slovak - [MVP - Outlook] - 30 Nov 2005 14:23 GMT
The only way I know of to detect that would be to iterate all windows that
are open in Windows using the Win32 API functions and see if any have
captions that match the attachment name.

Signature

Ken Slovak
[MVP - Outlook]
http://www.slovaktech.com
Author: Absolute Beginner's Guide to Microsoft Office Outlook 2003
Reminder Manager, Extended Reminders, Attachment Options
http://www.slovaktech.com/products.htm

>I currently have a COM addin written in VB6 for Outlook 2002. I am
> using the mailObj.save function which works fine, but if the mail
[quoted text clipped - 8 lines]
>
> TIA
 
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.