D
Darren
Hi,
Can anyone please direct me to some example C# code that shows how to
trap a document open event (ideally for MS Project 2000 but Word or
Excel would probably do).
MS Project is really weird - using Visual Studio .NET Intellisense I
can easily browse the MS Project object model and quickly implement
events such as NewProject or ProjectBeforeClose but I cannot find a
way of trapping the open project event (my addin needs to know the
names of all loaded projects)
The code below registers a "ProjectBeforeClose" event handler
projApp = (MSProject.Application)application;
projApp.ProjectBeforeClose += new
MSProject._EProjectApp_ProjectBeforeCloseEventHandler(projApp_ProjectBeforeClose);
This works fine but there seems to be no equivalent way to trap an
open event.
I know the open event exists (I can see it
"_EProjectDoc_OpenEventHandler") but there seems to be no way to
easily register a handler.
Please help me if you can.
Thanks in advance,
Darren.
Can anyone please direct me to some example C# code that shows how to
trap a document open event (ideally for MS Project 2000 but Word or
Excel would probably do).
MS Project is really weird - using Visual Studio .NET Intellisense I
can easily browse the MS Project object model and quickly implement
events such as NewProject or ProjectBeforeClose but I cannot find a
way of trapping the open project event (my addin needs to know the
names of all loaded projects)
The code below registers a "ProjectBeforeClose" event handler
projApp = (MSProject.Application)application;
projApp.ProjectBeforeClose += new
MSProject._EProjectApp_ProjectBeforeCloseEventHandler(projApp_ProjectBeforeClose);
This works fine but there seems to be no equivalent way to trap an
open event.
I know the open event exists (I can see it
"_EProjectDoc_OpenEventHandler") but there seems to be no way to
easily register a handler.
Please help me if you can.
Thanks in advance,
Darren.