Apply Background image selected Slide Only.

D

Dileep

Hello,
I developed a Com-addins for PowerPoint 2007using c#.net 2008 and
vsto.But i want to apply the background image, Selected Slide Only.

The below code apply the background all slides.

PowerPoint.Application powerpointAppln = new PowerPoint.Application();
PowerPoint.Presentation presntation =
powerpointAppln.ActivePresentation;
//PowerPoint.Slide slide =
presntation.Slides.Add(powerpointAppln.ActiveWindow.Selection.SlideRange.SlideNumber, PowerPoint.PpSlideLayout.ppLayoutTitle);
PowerPoint.Shape backImage =
presntation.SlideMaster.Shapes.AddPicture(@"C:\Documents and
Settings\User1\My Documents\LEADTOOLS Images\eye.gif",
Office.MsoTriState.msoFalse,
Office.MsoTriState.msoTrue,0
,0,presntation.SlideMaster.Width,presntation.SlideMaster.Height );
Thanks
Dileep
 

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