By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
424,665 Members | 1,367 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 424,665 IT Pros & Developers. It's quick & easy.

Enhanced Metafiles

P: n/a
Thanks for any help provided.

How can I access enhancedmetafile format images in the Windows clipboard?
The images appear when you use the clipbook viewer in the "Clipboard" not the
"Local Clipboard". I can paste these images into the MS Paint Application
with no problem. The application producing the images will only create an
EMF (it is the AutoDesk MapGuide activex control version 6.3).
It appears as if there is a known problem with .Net and EMF format images.
Can I simply save the clipboard emf data to a local file (.tif) or (.bmp) to
allow access/use?

Here is the code I have tried to use to get these to work in my application.
PictureBox1.Image =
Clipboard.GetDataObject.GetData(DataFormats.Metafi lePict, True)
PictureBox1.Image =
Clipboard.GetDataObject.GetData(DataFormats.Enhanc edMetafile, True)

I have tried to use this kb article to work around this problem with no luck:
"323530 Metafiles on Clipboard Are Not Visible to All Applications"

Jul 21 '05 #1
Share this question for a faster answer!
Share on Google+

This discussion thread is closed

Replies have been disabled for this discussion.