View Single Post
  #7  
Old March 17th 09, 01:19 PM posted to microsoft.public.outlook.program_addins
Ken Slovak - [MVP - Outlook]
external usenet poster
 
Posts: 5,848
Default Attachment not display when add to mail

Why are you saving the item as a MSG file and then re-opening it when you
already have that item saved in Outlook? What you are doing makes no sense
to me.

--
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" wrote in message
...
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


Ads