N
neoret
I need to disable an event for a short amount of time in my shared addin. I
use c#.
First I can set up how the event is created:
When I run word the connect class starts. In the connect class I add the
presentationBeforeSave eventhandler like this:
((Microsoft.Office.Interop.PowerPoint.Application)applicationObject).DocumentBeforeSave+=
new new
Microsoft.Office.Interop.Word.ApplicationEvents4_DocumentBeforeSaveEventHandler( word.WordDocumentBeforeSave );
I need to catch the save-event for so that I can manage the saving of the
document for the user.
I need to turn this event off in one special case.... In excel I can do
this by saying
theActiveExcelWorkbook.Application.EnableEvents = false; for then setting it
to true after doing what I need to do.
I cannot find this method in word. Do you have a tips for me on how to
handle this?
use c#.
First I can set up how the event is created:
When I run word the connect class starts. In the connect class I add the
presentationBeforeSave eventhandler like this:
((Microsoft.Office.Interop.PowerPoint.Application)applicationObject).DocumentBeforeSave+=
new new
Microsoft.Office.Interop.Word.ApplicationEvents4_DocumentBeforeSaveEventHandler( word.WordDocumentBeforeSave );
I need to catch the save-event for so that I can manage the saving of the
document for the user.
I need to turn this event off in one special case.... In excel I can do
this by saying
theActiveExcelWorkbook.Application.EnableEvents = false; for then setting it
to true after doing what I need to do.
I cannot find this method in word. Do you have a tips for me on how to
handle this?