[VB.Net] Replace/Update SlideMaster&Layouts using another presentation

Add-in Express™ Support Service
That's what is more important than anything else

[VB.Net] Replace/Update SlideMaster&Layouts using another presentation
 
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
Posted 14 Feb, 2014 04:43:10 Top
Andrei Smolin


Add-in Express team


Posts: 18825
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.


Andrei Smolin
Add-in Express Team Leader
Posted 14 Feb, 2014 07:22:50 Top
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
Posted 19 Feb, 2014 04:28:00 Top
Andrei Smolin


Add-in Express team


Posts: 18825
Joined: 2006-05-11
)))

Great! Thank you!


Andrei Smolin
Add-in Express Team Leader
Posted 19 Feb, 2014 04:47:49 Top