Christian Fasold
Posts: 45
Joined: 2013-11-27
|
Hello everybody,
currently I am stuck with my development and call out for (your ;-) ) help :)
What I would like to achieve is, to delete the Master-Slide and its layouts from the ActivePresentation
and replace it with the Master-Slide and its layouts from another presentation using VB.Net
The amount of layouts is the same in both presentations, you could call it: I want to upgrade the
Master slide and its layouts from the activePresentation to the newest one (which is stored in another presentation). So it is important to keep the information which slide has which layout :-)
Thanks a lot for your help and support!
Best regards,
Chris |
|
Andrei Smolin
Add-in Express team
Posts: 17502
Joined: 2006-05-11
|
Hello Chris,
I would move in this direction:
myDesign = presentaion2.Designs.Add() or presentaion2.Designs.Clone(...)
myDesignIndex = myDesign.Index
presentation1.Designs(myDesignIndex).CustomLayout(iNextCustomLayoutInPres1).Copy, presentation2.Designs(favoriteDesignIndex).CustomLayout(iNextCustomLayoutInPres2).Paste
I suppose doing this requires deleting custom layouts associated with the new design right after you create it.
Regards from Belarus (GMT+3),
Andrei Smolin
Add-in Express Team Leader |
|
Christian Fasold
Posts: 45
Joined: 2013-11-27
|
Hello Andrei,
thanks a lot for your reply.
I have now solved the problem in another way by opening a new presentation and then copying the "old" slides to that new empty presentation (which has the new template layouts)... :)
Best regards,
Chris |
|
Andrei Smolin
Add-in Express team
Posts: 17502
Joined: 2006-05-11
|
)))
Great! Thank you!
Regards from Belarus (GMT+3),
Andrei Smolin
Add-in Express Team Leader |
|