PPTX to Image conversion doesn't work on windows server 2012 production
问题 We have requirement to convert uploaded PPT or PPTX files into image files. We developed this working locally with following (POC code): Application pptApplication = new Application(); Microsoft.Office.Interop.PowerPoint.Presentation pptPresentation = pptApplication.Presentations.Open2007(filePath, MsoTriState.msoFalse, MsoTriState.msoFalse, MsoTriState.msoFalse); List<string> files = new List<string>(); for (int i = 1; i <= pptPresentation.Slides.Count; i++) { pptPresentation.SaveCopyAs