p2p.wrox.com Forums

p2p.wrox.com Forums (http://p2p.wrox.com/index.php)
-   BOOK: Visual Basic 2008 Programmer's Reference ISBN: 978-0-470-18262-8 (http://p2p.wrox.com/forumdisplay.php?f=384)
-   -   Copy Metafile to the Clipboard (http://p2p.wrox.com/showthread.php?t=69215)

TMA_Master July 7th, 2008 09:37 PM

Copy Metafile to the Clipboard
I am using the following statement to copy a metafile into the clipboard:

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?

TMA_Master August 26th, 2008 10:59 PM

Ok. I found the answer to my own post. Turns out .NET uses a format that is incompatible with current Windows products requiring use of the Win32 Clipboard APIs. See the Knowledgebase post: http://support.microsoft.com/kb/323530

All times are GMT -4. The time now is 06:25 PM.

Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.