Spire.Presentation is a professional PowerPoint® compatible library that enables developers to create, read, write, modify, convert and Print PowerPoint documents. Get free and professional technical support for Spire.Presentation for .NET, Java, Android, C++, Python.

Tue Jun 27, 2017 3:59 am

Dear jinhuang1992,

Thanks for your waiting.
Now the new feature which can access the layout slide of master slide has been done, please download and test Spire.Presentation Pack Hotfix Version:2.8.21. Here is sample code for your reference.
Code: Select all
IMasterSlide master = ppt.Masters[0];
IMasterLayouts masterLayouts = master.Layouts;
ActiveSlide layoutSlide = masterLayouts[0] as ActiveSlide;

Also, sorry that the new feature to automatically adjust the size of content on the slide is still not finished.
Looking forward to your feedback about the finished feature.

Sincerely,
Betsy
E-iceblue support team
User avatar

Betsy.jiang
 
Posts: 3099
Joined: Tue Sep 06, 2016 8:30 am

Thu Jun 29, 2017 9:23 am

Dear jinhuang1992,

Did you test the hotfix and the new feature ?
Did it meet your requirement ?

Thanks,
Betsy
E-iceblue support team
User avatar

Betsy.jiang
 
Posts: 3099
Joined: Tue Sep 06, 2016 8:30 am

Thu Jun 29, 2017 12:17 pm

Yes I have tested the new feature and it seems to be functioning the way I believe it should be. I do have a question related to the layout, when we use the function

Code: Select all
presentation.Slides.Append(slide, masterSlide);


how does the function decide which layout it apply from that master slide? Does it determine by layout index of the current slide and then use the same index in the master slide?

Thanks so much for adding this feature!

jinhuang1992
 
Posts: 13
Joined: Wed Mar 08, 2017 2:21 pm

Fri Jun 30, 2017 2:55 am

Dear jinhuang1992,

Thanks for your inquiry.
Now Spire.Presentation applys a default layout from master when appending new slide. Sorry that it doesn't support to modify that. And we have added the new requirement as new feature into our schedule. We will inform you as soon as there is any great progress.

Sincerely,
Betsy
E-iceblue support team
User avatar

Betsy.jiang
 
Posts: 3099
Joined: Tue Sep 06, 2016 8:30 am

Fri Jul 28, 2017 7:21 am

Dear jinhuang1992,

Thanks for waiting.
Now the new feature appending new slide with specific layout from master has been finished, welcome to test Spire.Presentation Pack Hotfix Version:2.8.35.
Here is sample code for your reference.
Code: Select all
            ppt.Slides.Append(ppt.Slides[0], ppt.Masters[0].Layouts[1]);
            //or this code
            //ppt.Slides.Insert(0, ppt.Slides[0], ppt.Masters[0].Layouts[1]);

Looking forward to your feedback.

Sincerely,
Betsy
E-iceblue support team
User avatar

Betsy.jiang
 
Posts: 3099
Joined: Tue Sep 06, 2016 8:30 am

Return to Spire.Presentation