I need to be able to save Presentations (programatically) in PowerPoint 2003 as OpenXML (".pptx"). I installed the Microsoft Office Compatibility Pack. This indeed allows me to perform "Save as PowerPoint 2007 Presentation" from PowerPoint 2003.
How can I do this programmatically? (e.g. VBA)
I tried Presentation.SaveAs
:
While there is no inherent PpSaveAsFileType
enum value in PowerPoint 2003 for ppSaveAsOpenXMLPresentation
, I made a program which prints the PpSaveAsFileType
values and found out that during run-time, ppSaveAsOpenXMLPresentation = 24
.
However, I tried:
SaveAs(@"c:\temp\saveas\pupik.pptx", (PpSaveAsFileType) ((int) 24), MsoTriState.msoTrue);
And got an "Invalid Enumeration Value" Exception
Any ideas how to make this work?
(PS - I am aware that this question was already asked by several people on the web, but no solutions were offered.)
Thanks, Arie