PowerPoint 2007 paste slide - problems with images

N

nsmith39

Tried following in C# to copy slides from presA to presB

((PowerPoint.Slide)presA.slides._Index(i)).copy();
presB.Slides.Paste(presB.Slides.count);

Slide copy / paste works, however strange problem that if an image in presB
slide already exists in presA then reference to the image in the copied
slide shows the red "x", no ref to rId3. Looking in the _rel file for the
copied slide the image ref is "NULL". Copy / paste using application menu
works!

Furthermore, the problem only seems to happen when copying from Open XML
files (.pptx), not .ppt files. Above code has been working with PowerPoint
XP, 2003 and .ppt files with PowerPoint 2007.

Have also tried Slides.InsertFromFile method however it doesn't bring any
images with the slides.

Anyone confirm this problem or have suggested alternative?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top