When open mail then first i check all attachments in this mail.
Mail-Attachments-Count = 0. Embeded image is in body of mail
Then i add an attachment. After adding attachment i cant see embeded image
in mail body. But when i close this mail Mail-Attachments-Count shows
value 2. It means when i add an attachment embeded image is converted into
attachment(by val). But it doesn't show that attachment.
What's wrong here why embeded image change into attachment. Is there any
solution for this case.
"Ken Slovak - [MVP - Outlook]" wrote in message
...
What BodyFormat is the message in? Have you tried supplying a
missing/default argument for the Position argument (not sure how that
would be done using C++).
--
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 remove the code to set subject. But still embeded image is not visible
when open mail. Now i'm sure it happens due to adding an attachment. If i
dont add attachment then embeded image is visible. Attachment is a text
file. I use following code to add attachment
variant_t vpath(attachfile_path.c_str());
variant_t vposition( 1);
variant_t vdisplay(attachfilename);
variant_t filetype((long)1);
((Outlook::_MailItemPtr)MailItemptr)-Attachments-Add(vpath,filetype,vposition,vdisplay);