Hi
I have a presenation which contain some slides say 10 slide. All these slide only contain images. Now i want to change the layout of the slide to OnlyTitlePlaceholder and wants to add titles to it using textholder and placeholder. Is there any way to change the layout of the slide on the fly? I tried few things but it doesn't work. My sample code is as below
Presentation pres = new Presentation("C:\test.ppt");
int page = 1;
Slide slidee = null;
while ((slidee = pres.GetSlideByPosition(page++)) != null)
{
slidee.Layout = SlideLayout.OnlyTitlePlaceholder;
if (slidee.Placeholders[0] != null)
{
TextHolder th;// = new TextHolder();
th = (TextHolder)slidee.Placeholders[0];
th.Paragraphs[0].Portions[0].Text = "Title PlaceHolder";
}
}
Earliest reponse will be great help.
Thanks in Advance
ReadyToHelp