Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / General PowerPoint Questions / October 2007

Tip: Looking for answers? Try searching our database.

PowerPoint 2007 paste slide - problems with images

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
nsmith39 - 14 Oct 2007 21:31 GMT
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?
John Wilson - 15 Oct 2007 08:17 GMT
I can confirm that I have insert from files (vba) not bringing in images.
Signature

Amazing PPT Hints, Tips and Tutorials-
http://www.PPTAlchemy.co.uk
http://www.technologytrish.co.uk
email john AT technologytrish.co.uk

> Tried following in C# to copy slides from presA to presB
>
[quoted text clipped - 15 lines]
>
> Anyone confirm this problem or have suggested alternative?
Steve Rindsberg - 17 Oct 2007 03:55 GMT
> Tried following in C# to copy slides from presA to presB
>
[quoted text clipped - 13 lines]
> 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.

-----------------------------------------
Steve Rindsberg, PPT MVP
PPT FAQ:  www.pptfaq.com
PPTools:  www.pptools.com
================================================
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.