Click here to Skip to main content
15,662,426 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I have implemented a custom form region on the read email inspector for Outlook 2010, there is no code behind the region at this point other than the predefined events.

Part of the requirement is that the MailItem.SaveAs() method will be used to store the email in a document management system folder structure, I am replicating this method using the Save As option on the menu in the Inspector. When saving the mail item to disk I can reopen it once but any attempt to open the saved email after that, without restarting Outlook, gives me a permissions error. If I try to delete the saved email Windows informs me that it is open in Outlook and cannot be deleted.

This leads me to believe that the region is in some way holding a reference to the mail item when opened through Windows Explorer but can't for the life of me figure out how.

Has anyone come across this behaviour?, I would be very grateful for some advice on how to get around this issue.

Many thanks in advance
Updated 21-Jan-14 22:39pm

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900