S
Synergy
We have an EXE application created in VC++ 6.0. We are loading EMF files
(corresponding to a PPT presentation having WMF files inserted into it) to a
HDC object using PlayEnhMetaFile() from this application. The EMF files are
generated from this EXE by PowerPoint automation using the object model
method _presentation.SaveAs(). Our problem is PlayEnhMetaFile() fails for
PowerPointXP or PowerPoint 2003 in this case.
Detailed info:
What we have done is
1) Created a 1 slide presentation
2) Insert a WMF file into it [Insert-Picture-From file].
3) Save the presentation.
Ran our EXE application.
From this EXE we save the above presentation as EMF.
Now we will get 1 EMF.
We loaded this EMF to a HDC object using PlayEnhMetaFile().
The above method worked OK for PowerPoint 2007.
But if is PowerPoint XP or PowerPoint 2003, the PlayEnhMetaFile() fails.
Why the PlayEnhMetaFile() fails for PPT XP or PPT 2003?
(corresponding to a PPT presentation having WMF files inserted into it) to a
HDC object using PlayEnhMetaFile() from this application. The EMF files are
generated from this EXE by PowerPoint automation using the object model
method _presentation.SaveAs(). Our problem is PlayEnhMetaFile() fails for
PowerPointXP or PowerPoint 2003 in this case.
Detailed info:
What we have done is
1) Created a 1 slide presentation
2) Insert a WMF file into it [Insert-Picture-From file].
3) Save the presentation.
Ran our EXE application.
From this EXE we save the above presentation as EMF.
Now we will get 1 EMF.
We loaded this EMF to a HDC object using PlayEnhMetaFile().
The above method worked OK for PowerPoint 2007.
But if is PowerPoint XP or PowerPoint 2003, the PlayEnhMetaFile() fails.
Why the PlayEnhMetaFile() fails for PPT XP or PPT 2003?