简体   繁体   中英

calling powerpoint Slide using C#

i wanna make a program to update a chart from excel to powerpoint.

if i wanna add a slide in powerpoint, i'm using this script

pptNS._Presentation opres = pres.Open(@"" + textBox5.Text + "", Microsoft.Office.Core.MsoTriState.msoFalse, Microsoft.Office.Core.MsoTriState.msoFalse, Microsoft.Office.Core.MsoTriState.msoTrue);

pptSlide = opres.Slides.Add(1, pptNS.PpSlideLayout.ppLayoutBlank);

but, i confused when i should get slide name to update data .. can somebody help me ? thanks ...

After:

pptSlide = opres.Slides.Add(1, pptNS.PpSlideLayout.ppLayoutBlank);

pptSlide.Name (or equivalent syntax) should give you the name PPT has assigned to the slide.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM