As Ken said you are probably passing the IPictureDisp object across process
boundaries which is not possible. you have no choice that using PasteFace,
but you won't be able to make the image transparent.
Actually you can but it's really complex..I saw something, but I don't
remember where, that enables you to make the image transparent...
Hichem
"Andrew" wrote:
"What happens if you put a BMP image on the clipboard, and use PasteFace
instead of setting Picture?"
Haven't tried that, will attempt it to see.
"Ken Slovak - [MVP - Outlook]" wrote:
Well, the only reasons that I know of why setting Picture would cause an
exception is if you pass it something other than an IPictureDisp object, or
if you pass the IPictureDisp object across process boundaries (WordMail 2003
or earlier).
What happens if you put a BMP image on the clipboard, and use PasteFace
instead of setting Picture?
--
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
"Andrew" wrote in message
...
Yes "m_OldEmailCSToolBar" is a commandbar object and it is valid at the
time
i'm adding the buttons.
Yes I also check the Inspector.IsWordMail() property, because i've noticed
the issues associated with it.
Yes, the code works fine when I comment out the .Picture assignment.