jackjohnson44
asked on
C# - This operation cannot be performed in this event handler.
I am getting this error:
Presentation (unknown member) : Invalid request. This operation cannot be performed in this event handler.
I am trying to close an instance of power point from within an add-in.
Basically I open another file by launching internet explorer and providing a ulr that points to another powerpoint presentation. This works well.
After I do that I just want to close the program that I am in, but I get the error.
Even without opening the other file, how can I just shutdown powerpoint from an add-in, that is my real problem.
void Application_PresentationOp en(Microso ft.Office. Interop.Po werPoint.P resentatio n Pres)
{
Process.Start("IExplore.ex e", rnetlocation);
Globals.ThisAddIn.Applicat ion.Active Presentati on.Close() ;
Presentation (unknown member) : Invalid request. This operation cannot be performed in this event handler.
I am trying to close an instance of power point from within an add-in.
Basically I open another file by launching internet explorer and providing a ulr that points to another powerpoint presentation. This works well.
After I do that I just want to close the program that I am in, but I get the error.
Even without opening the other file, how can I just shutdown powerpoint from an add-in, that is my real problem.
void Application_PresentationOp
{
Process.Start("IExplore.ex
Globals.ThisAddIn.Applicat
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.