I am writing a simple module that uses Microsoft.Office.Interop.PowerPoint to determine if a PowerPoint slideshow is active and if so which slide is currently being presented. This works great when I use Microsoft.Office.Interop.PowerPoint.Presentation to open the presentation in my code. If possible, I want to check to see if an instance of Power Point is already open and if so attach to it instead of opening a new instance.
TIA
you can check by calling
Marshal.GetActiveObject ("Powerpoint.Application")– it gives an exception if powerpoint is not running… see http://msdn.microsoft.com/en-us/library/system.runtime.interopservices.marshal.getactiveobject.aspxIf it is running this gives you an object…