PowerPoint 2007 paste slide - problems with images

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

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?
 
Nsmith39 said:
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.

I get images, in a sense, when InsertFromFile is used, but they're corrupted
... I get the DreadedRed-X instead of the image.

It works correctly when inserting into 2007 from a 2003 or previous file and
works correctly if I first save the "source" file in 97-2003 format before
inserting from it.
 
Back
Top