EMF in clipboard will be lost upon open Word

S

Sebastian Lehmann

Hello Newsgroup,

Our application uses the Enhanced Metafile format (EMF) to export high
resolution drawings to the clipboard from where it can be used in other
applications (e.g. MS Word).

Everything works fine, if Word or Excel is open before copying the
drawing to the clipboard - it can be easily inserted the the Word or
Excel document using Ctrl+V. But if I open Excel or Word _after_ copying
to the clipboard, the enhanced metafile will be lost and replaced by an
icon, so I need to recopy the drawing to clipboard after I opened up a
MS Office application.

The problem occurs even if one Office app is already running (e.g. Word)
and a second one (e.g. Excel) is started after copying the EMF to the
clipboard. If I copy the drawing to the clipboard as bitmap, the problem
didn't occur.

If I check the Clipboard before opening Word using the Clipbrd.exe
(located in the System32 folder) there will be an Enhanced Metafile in
the clipboard. After opening Word or Excel, there will no longer be an
Enhanced Metafile, but an DIB bitmap!

If I use the MS Word's Clipboard view to check the Clipboards content,
and open Excel after copying the drawing to the clipboard, it shows me
the metafile on top before starting Excel, but only on second position
after Excel is started. On first position there will be the icon I
already mentioned. In case of bitmap export to the clipboard, there will
be the bitmap on top before starting Excel and afterwards the bitmap on
first and third position with the icon on the second position. Strange!

I searched the web for a solution or explanation of this, but all I
found was another thread without an answer to the problem:

http://groups.google.de/groups?hl=de&lr=&selm=edT08DjGCHA.2680@tkmsftngp12

I'm using WinXP SP2 with Office Professional 2003 SP 1. The problem also
occurs on a WinXP SP2 with the Office 2000 SP3 and on a Win2k with the
Office Professional 2003 SP1.

Any help is greatly appreciated!

Regards,

Sebastian.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top