I have cloned a title slide from another presentation the master of the slide is also cloned
It has a placeholder with alternatetext "Slide Title" I can able to findShape() it but if i get it’s textframe and write some text to it the text wont come in when i open the slide in powerpoint
if i add the title slide using addTitleSlide() of Presentation then i can able to get the “Slide Title” placeholder and the text written to it using Textframe comes in powerpoint
i need to add my own title slide from my own template and also have the text that i written to the placeholders us well
Cloning any slide which follows TITLE MASTER will also copy the SLIDE MASTER besides TITLE MASTER.
Since your text is present on TITLE MASTER, so it will appear only for those slides which follow TITLE MASTER in other words for title slides. For example, the one you added with Presentation.addTitleSlide.
So, it is a correct behavior.
Editing slides in PP 2007 converts the textholders (a kind of placeholder which contains text) into textframes.
Cloning any slide which follows TITLE MASTER will also copy the SLIDE MASTER besides TITLE MASTER.
Since your text is present on TITLE MASTER, so it will appear only for those slides which follow TITLE MASTER in other words for title slides. For example, the one you added with Presentation.addTitleSlide.
So, it is a correct behavior.
thanks faiz, if i clone the "title slide" (slide not master) from my own template both masters(slide and title) are also cloned automatically the title slide that i cloned has a placeholder (it has two for title and subtitle) if i add any text to the any of the placeholder using textframe and save the ppt powerpoint doesnt show the text which i written to it it shows text like "click here to add title"
i have attached the templatefile that used to clone from.
msfaiz:
Editing slides in PP 2007 converts the textholders (a kind of placeholder which contains text) into textframes.
Placeholders on master slides just tell the formatting and style of text, they are not meant to show text on the normal slides that follow them. If you want some text on the master slide, to appear on normal slide, just add a text frame, like I have added in the attached ppt.
Sorry for the confusion, I finally got your problem. The problem is because Slide Title placeholder is empty with no character/text. But if you add a single character inside it and then clone and try to set its text, no exception will occur.
I want to set Red as Text color to master title placeholder. so all the title slides that based on that title master will have the title text color us Red
If i do that by adding new Red text Portions to title master placeholder The title slides that based on that Master lost its text.
When I try to set the text in a master slide, then the created ppt becomes corrupted. When we try to open the ppt in PowerPoint, it is throwing the error “A part of file is missing”.
If I try to set the portion props in the master slide, the ppt can be opened, but the portion properties are not taking effect in the title, subtitle, textbody placeholders.
The above works normally in a normal slide but not in a slidemaster or a title master. Please provide me a solution for setting the text, portion properties in a master slide.
I have tried to understand the issue shared by you. But in order to reproduce the issue on my end I request you to please share the template presentation for reference. Please also share, which portion properties that you are trying to set and are not working. Please also share that which version of Aspose.Slides for Java you are using for your application.