View Single Post
  #1 (permalink)  
Old July 7th, 2008, 09:37 PM
TMA_Master TMA_Master is offline
Registered User
 
Join Date: Jul 2008
Location: , , .
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default Copy Metafile to the Clipboard

I am using the following statement to copy a metafile into the clipboard:
Clipboard.SetImage(Image.FromFile("C:\test.wmf"))

However, when I try to paste the copied image into another application it fails. Powerpoint 2007 does nothing (no response to paste action), CorelDRAW X3 complains that "The specified data format is not available." There some blogs on the internet that say the VB metafile format is not recognizable and that you have to use Win32 API to do this successfully. Any suggestions?