Okay, I have some more insight on the problem.
My application copies the bitmap to the clipboard in three formats:
CF_DIB, CF_BITMAP and CF_HTML. In the HTML case, there's just some text
and a link to a locally saved copy of the bitmap.
Powerpoint can paste the image if I only place the CF_DIB and CF_BITMAP
formats on the clipboard. It cannot paste it if I also include the
CF_HTML format. However, I can paste it if I select Paste Special and
then choose one of the bitmap formats.
Apparently, Powerpoint cannot paste the the HTML format that's placed
in the clipboard. Furthermore, it tries to paste the HTML format (and
fails) even though the bitmap formats are also available. I tried this
on Powerpoint 2003 SP1, by the way.
The workaround is to always chose Paste Special, but I'd prefer if just
Paste also were to work. Any ideas?
-K
Post by Steve RindsbergPost by s***@hotmail.comMy application places a bitmap onto the clipboard using
SetClipboardData. The bitmap is copied in both the CF_BITMAP and CF_DIB
formats, and it can be pasted into Microsoft Paint, Wordpad, and pretty
much any other application. However, it cannot be pasted into
Powerpoint.
How are you doing this, what do you expect to happen, what's happening instead,
and in what version of PPT?
Post by s***@hotmail.comDoes Powerpoint not recognize the plain old bitmap format on the
clipboard?
It does. Press Alt+PrtScrn, switch to PPT and choose Edit, Paste Special.
That'll show you a list of the clipboard formats PPT recognizes as "pasteable".
DIB and Bitmap will almost certainly be on the list.
Try the same thing after your application puts an image on the clipboard. Are
they still there?
Post by s***@hotmail.comIs there some other format that I should copy the bitmap to
the clipboard as?
There should be no need for that.
-----------------------------------------
Steve Rindsberg, PPT MVP
PPT FAQ: www.pptfaq.com
PPTools: www.pptools.com
================================================