是否可以使用带有 C# 的 office Interop 从 Powerpoint 表中删除任何行?
PowerPoint.Application objApp;
PowerPoint.Presentations objPresSet;
PowerPoint._Presentation objPres;
PowerPoint.Slides objSlides;
PowerPoint._Slide objSlide;
PowerPoint.TextRange objTextRng;
PowerPoint.Table objTable;
objApp = new PowerPoint.Application();
//objApp.Visible = MsoTriState.msoTrue;
objPresSet = objApp.Presentations;
objPres = objPresSet.Open(strTemplate,
MsoTriState.msoFalse, MsoTriState.msoFalse, MsoTriState.msoFalse);
objSlides = objPres.Slides;
objSlide = objSlides[1];
for (int i=0;i<5;i++)
{
objTable.Rows.Add(objTable.Rows.Count);
{
// How to delete any rows ???
`