View Single Post
  #1  
Old August 9th 06, 08:34 PM posted to microsoft.public.outlook.program_addins
Joel
external usenet poster
 
Posts: 1
Default Problem with attachments in Outl

Hi. I was experiencing similar, but slightly different problem as you when
using DeleteAttach (). When I would create an attachment, and then delete
the old ones from a message, the original attachment would stay and the new
one would be gone. The behavior was crazy, and not neccesarily worth
explaining here. I was writing an exchange addin the would modify the
attachments in the OnSubmit () event. This is where my problem was. After
looking an example that kinda did was I was doing (http://www.codeproject.
com/com/outlookaddinzip.asp), I tried placing my code in OnWriteComplete ()
and Whala! It worked. So the moral of the story is: Don't modify the
attachments unless your in OnWriteComplete ().

Sorry if this was too unrelated, but I found this post while trying to solve
my problem, and so I thought maybe others would too.

Have a great day!

-Joel
Ads