I have tried to save item after adding attachment but it still dont display
attachment. I'm not saving item before adding attachment. I dont have much
knowledge for outlook addin. I think it is happening due to following
reason.
In my addin Open a mail from inbox folder(subject-> test1) add an attachment
in item_open event and save this mail(test1.msg type) on hard
disk(File->SaveAs) and close. Now Open test1.msg from hard disk(since
test1.msg is also in Inbox folder, item_open event call 2 times). After
closing this mail i found 2 mails of subject test1.msg in inbox folder. I am
handling all mail events throgh Inspector.
When i open a mail
register inspector event in a inspector class and pass
Application->CurrentInspector
In Notify of inspector class register mail event(outlook::Items)
Please suggest where i'm wrong
"Ken Slovak - [MVP - Outlook]" <(E-Mail Removed)> wrote in message
news:%(E-Mail Removed)...
> Don't disable the other events and try saving the item after you add the
> attachment.
>
> --
> 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
>
>
> "Ashish" <(E-Mail Removed)> wrote in message
> news:(E-Mail Removed)...
>>I dont save item when i open it. But in my outlook addin when i open a
>>item and add an attachment in item_open many item events called like
>>item_open, item_write, item_read,
>>item_attachmentadd,item_beforeattachmentsave etc
>> If i disable item_write( avoid writing) then it other events for this
>> item are stop. Should i disable item_write. But if i disable it then how
>> to enable other events.
>> "Ashish" <(E-Mail Removed)> wrote in message
>> news:%(E-Mail Removed)...
>>> No. I dont save the the item after adding attachment.
>>> I add the attachment in Item_Open() eveny
>>> item->Attachments->Add(filaname);
>>> When i double click a mail attachment display in mail. WHen i right
>>> click and select open then it's not display.
>