Group:  General ยป microsoft.public.officedev
Thread: Open XML support via interops on older versions of Office

Geek News

Open XML support via interops on older versions of Office
Michael 11/19/2008 6:20:07 AM

Essentially this is my code to open a PowerPoint file:

using Microsoft.Office.Interop.Core;
using Microsoft.Office.Interop.PowerPoint;

Application app = new Application();
Presentation presentation = app.Presentations.Open([ at ]"c:\file.pptx",
MsoTriState.msoFalse, MsoTriState.msoFalse, MsoTriState.msoFalse);

What I'm wanting is it to support PPTX files on older versions of office
that have the compatibility pack installed. Currently I'm getting a
"PowerPoint does not support this filetype" error. From the looks of things
in explorer MOC.EXE is registered to open PPTX files. So does anyone know how
I can programmatically call the converter to return a presentation object or
know of command line syntax I can use to convert PPTX to PPT to a temporary
folder and open it from there?

Home | Search | Terms | Imprint Contact
Newsgroups Reader - provided by WiredBox.Net