T
Todd Wilkes
In a C# VSTO SE AddIn I'm writing for PowerPoint 2007 I'd added a menu option
to the context menu of the slide show window.
The other day it was reported to me that the option no longer worked. I
checked it out and tried multiple ways to get it to work. Then I realized
that the "Next" and "Previous" options on the context menu no longer worked
either, while the rest of the options did.
After testing for some time (and creating a couple new generic AddIns) I
found out that if none of my plugins (test or otherwise) asked for events
from the Application (such as AfterNewPresentation) the "Next" and "Previous"
options would work. If I made the following changes, the above options no
longer worked. These are the only changes I made to the default behaviour:
private void ThisAddIn_Startup( object sender, System.EventArgs e )
{
this.Application.AfterNewPresentation += new
Microsoft.Office.Interop.PowerPoint.EApplication_AfterNewPresentationEventHandler( Application_AfterNewPresentation );
}
void Application_AfterNewPresentation(
Microsoft.Office.Interop.PowerPoint.Presentation Pres )
{
System.Diagnostics.Debug.WriteLine( "Application_AfterNewPresentation" );
}
I was wondering if anyone else was having similar issues.
to the context menu of the slide show window.
The other day it was reported to me that the option no longer worked. I
checked it out and tried multiple ways to get it to work. Then I realized
that the "Next" and "Previous" options on the context menu no longer worked
either, while the rest of the options did.
After testing for some time (and creating a couple new generic AddIns) I
found out that if none of my plugins (test or otherwise) asked for events
from the Application (such as AfterNewPresentation) the "Next" and "Previous"
options would work. If I made the following changes, the above options no
longer worked. These are the only changes I made to the default behaviour:
private void ThisAddIn_Startup( object sender, System.EventArgs e )
{
this.Application.AfterNewPresentation += new
Microsoft.Office.Interop.PowerPoint.EApplication_AfterNewPresentationEventHandler( Application_AfterNewPresentation );
}
void Application_AfterNewPresentation(
Microsoft.Office.Interop.PowerPoint.Presentation Pres )
{
System.Diagnostics.Debug.WriteLine( "Application_AfterNewPresentation" );
}
I was wondering if anyone else was having similar issues.