ActivePresentation: Invalid request, there is not active presention

Sep 22, 2013 at 9:16 AM
Edited Sep 23, 2013 at 8:59 AM
Hi, I have once again a Problem ;-)

I try to get the currently open presentation to modify document properties while starting the plugin.
PowerPoint.Application powerPointApplication = PowerPoint.Application.GetActiveInstance();
powerPointApplication.Visible = MsoTriState.msoTrue;
PowerPoint.Presentation presentation = null;
            try {
                presentation = powerPointApplication.ActivePresentation;
            } catch (Exception e) { ...}
But this request always throws following error: ActivePresentation: Invalid request, there is not active presention.

I think the presentation isn't fully loaded while the plugin is starting. But how can I avoid this or do some workaround? I've I run it directly from VS it is working!!!! The same problem occours in excel. Word is working perfectly.

PowerPoint 2010 was used.

Sep 22, 2013 at 9:34 AM
quick and dirty way is with an timer but it's not nice!!!!