Him*_*aja 4 c# powerpoint interop
我想使用 C# 从 PowerPoint 演示文稿中删除特定幻灯片。任何人都可以帮我解决这个问题吗?
打开 PowerPoint 堆栈和每个普通 COM 并使用
var powerPoint = new Microsoft.Office.Interop.PowerPoint.Application();
var presentation = powerPoint.Presentations.Open(fileName);
presentation.Slides[x].Delete();
presentation.Save();
Run Code Online (Sandbox Code Playgroud)