Thanks it's solved now. The problem was adding attachment in Item_Open
event. When i add attachment in Inspector.Activate() then it display.
I know how to use mail item event like item_open, item_close,item_fwd etc.
But i dont have idea how to implement context menu operations like when i
right click on any mail select any opertion like reply,forward etc. Are they
handled seperately
<kenslovak@mvps.org> wrote in message
news:OLV6yA0pJHA.5100@TK2MSFTNGP03.phx.gbl...
> There should be no difference in how an item displays no matter how it's
> opened.
> You never did show any of your code, so no one knows what you are doing or
> how.
> Assuming you want to add an attachment when an item is opened then the way
> I'd do it would be something like this, in the first Inspector.Activate()
> event, assuming that _inspector is your Inspector object:
> Outlook.MailItem mail = _inspector.CurrentItem;
> Outlook.Attachments attachs = mail.Attachments;
> Outlook.Attachment attach = attachs.Add(
> "c:\foobar.jpg", (int)Outlook.OlAttachmentType.olByValue, 1,"My
> Attachment Picture");
> mail.Save();
> // now release all those objects
> >
>
> "Ashish" <akohli_2004@hotmail.com> wrote in message
> news:eI54RtwpJHA.3380@TK2MSFTNGP04.phx.gbl...
> >I just tell this only for knowing the reason why attachment not display.
> > Ok If i dont save item as msg and reopen it then i still have the save
> > problem for attachment(right click on a item and select open).
>