How to avoid opening a powerpoint window while reading a presentation progrmatically? RRS feed

  • Question

  • I am trying to read a powerpoint presentation and read some propeerties in the presentation. But I don't want the user to see the powerpoint window open. Can I achieve the same?

    I am using Microsoft.Office.Interop.PowerPoint dll and using open(filepath) method.


    Raunak Mohanty
    Tuesday, January 10, 2012 6:51 AM


  • Hi Raunak

    After you start the PowerPoint.Application (you're probably using the keyword "new"?), you can set the Application's Visible property to False so that it's not visible.

    The other way, if these are PowerPoint 2007/2010 files, would be to work directly with the Open XML file, not opening it in the application window at all. The Open XML files are Zip packages with XML files that define the document (presentation). You can work with them using the standard System.IO.Packaging and XML namespaces.

    There's also an Open XML SDK that "wraps" things up (meaning less coding), making access the information much easier.

    You'll find more information at

    Cindy Meister, VSTO/Word MVP
    Tuesday, January 10, 2012 7:57 AM