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?
((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?