PRB: Loading Metafile Causes "Cannot Convert Picture" Error

Last reviewed: July 23, 1997
Article ID: Q84926
3.00 3.10 WINDOWS kbprg kbprb

The information in this article applies to:

  • Microsoft Windows Software Development Kit (SDK) for Windows, versions 3.0 and 3.1

SYMPTOMS

When an application attempts to load a metafile from disk, the following error message is displayed in a message box:

   Cannot convert picture

CAUSE

Some Windows applications expect to load a "placeable" metafile, which has 22 additional bytes, at the beginning of a normal metafile. Both metafile types use the .WMF file extension; only the contents of the file change.

In an application, the GetMetaFile function does not read a placeable metafile correctly; however, it returns a non-NULL value, which indicates success.

RESOLUTION

Load the metafile into an application that will accept both metafile types and save the metafile in an appropriate type. The following applications accept "placeable" metafiles: Aldus PageMaker, Microsoft PowerPoint, Micrografx, Corel Draw, Microsoft Draw, Microsoft Graph, Microsoft Equation Editor, and Microsoft Publisher.

For more information on placeable metafiles, query on the following words in the Microsoft Knowledge Base:

   prod(winsdk) and placeable and metafile


Additional reference words: 3.00 3.10
KBCategory: kbprg kbprb
KBSubcategory: GdiMeta
Keywords : kb16bitonly


THE INFORMATION PROVIDED IN THE MICROSOFT KNOWLEDGE BASE IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND. MICROSOFT DISCLAIMS ALL WARRANTIES, EITHER EXPRESS OR IMPLIED, INCLUDING THE WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL MICROSOFT CORPORATION OR ITS SUPPLIERS BE LIABLE FOR ANY DAMAGES WHATSOEVER INCLUDING DIRECT, INDIRECT, INCIDENTAL, CONSEQUENTIAL, LOSS OF BUSINESS PROFITS OR SPECIAL DAMAGES, EVEN IF MICROSOFT CORPORATION OR ITS SUPPLIERS HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. SOME STATES DO NOT ALLOW THE EXCLUSION OR LIMITATION OF LIABILITY FOR CONSEQUENTIAL OR INCIDENTAL DAMAGES SO THE FOREGOING LIMITATION MAY NOT APPLY.

Last reviewed: July 23, 1997
© 1998 Microsoft Corporation. All rights reserved. Terms of Use.