How to get slide title and implement play/pause feature on slide s

S

SN Zeih Zeih

Hi Dear All,

I am developing an application using C#, VS-2008 and MS-PowerPoint 12. Now I
need to fetch the Title, not the name, of the slides of a Presentation. I
have written some code but it does fetch only the name of the slides. Below
is my code to get the Title of slide. Actually i have no much idea to do
this.
try

{

int buttonTop = 0;

foreach (PowerPoint._Slide slide in pptPresenation.Slides)

{

Button btnNav = new Button();

btnNav.Name = slide.Name + "-" + slide.SlideNumber;

btnNav.Text = slide.Name;//This is the line where I need to get the Title
instead of name.

btnNav.Width = panLeftMenu.Width - 10;

btnNav.Left = 3;

btnNav.Top = buttonTop;

buttonTop = buttonTop + (btnNav.Height + 2);

btnNav.Click+=new EventHandler(btnNav_Click);

panLeftMenu.Controls.Add(btnNav);

}

}

catch { }

And apart from this I also would like to Play and Pause the slide show. How
do I go about that?

I need some help from you guys. Thanks
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top