If you enumerate all clipboard formats in c# using the GetFormats methods,
you will see that the clipboard contains the "EnhancedMetafile" custom
clipboard format which cannot be retrieved. However the canonical
CF_ENHMETAFILE clipboard format can be retrieved using the calls in my post
provided that GetFormats presents the "EnhancedMetafile" format as an
available clipboard format.
If you use GetFormats, you will see that Office also places the
"MetaFilePict" custom .Net format on the clipboard. You may retrieve this
clipboard format using the same p-invoke code with CF_METAFILEPICT
substituted for CF_ENHMETAFILE.
The clipboard will synthesize the missing format for you if the application
places only one of them on the clipboard(i.e., "EnhancedMetafile",
"MetafilePict").
"Andrey Dzizenko" <A.********@logicexplorers.com> wrote in message
news:op***************@dzizenko.lei.com...
Oh... Sorry, I forgot to mention that...
Clipboard.ContainsData(DataFormats.EnhancedMetafil e) returns false. And
all other formats too.
..NET Clipboard can't see the data (it's MSWord's picture). Explained at
http://support.microsoft.com/?id=323530
Best regards,
A. Dzizenko.