pangblog
        /// <summary>
        /// rename PPT
        /// </summary>
        private static void renamePPT()
        {
            //add references Microsoft.Office.Interop.PowerPoint
            //using PowerPoint = Microsoft.Office.Interop.PowerPoint;
            string pptPath = @"R:\LiChao\Temp\test\CCB_F4I;09_Field Work - Part 1 Field Work.ppt";
            var app = new PowerPoint.Application();
            //add references System.Core
            //using Microsoft.Office.Core;
            app.Presentations.Open2007(pptPath, MsoTriState.msoTrue, MsoTriState.msoFalse, MsoTriState.msoTrue, MsoTriState.msoFalse);
            app.ActivePresentation.SaveAs(@"R:\LiChao\Temp\test\CCB_F4I;09_Field Work - Part 1 Field Work.pptx", PpSaveAsFileType.ppSaveAsDefault, MsoTriState.msoFalse);
            app.ActivePresentation.Close();
        }


分类:

技术点:

相关文章:

  • 2022-12-23
  • 2021-06-22
  • 2022-12-23
  • 2022-12-23
  • 2021-06-29
  • 2022-12-23
  • 2021-07-01
  • 2022-12-23
猜你喜欢
  • 2021-12-16
  • 2022-12-23
  • 2022-12-23
  • 2021-05-10
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案