This documentation is archived and is not being maintained.
Document:: BeforeSave Event
Occurs before the document is saved.
Namespace:
Microsoft.Office.Tools.Word Assembly:
Microsoft.Office.Tools.Word (in Microsoft.Office.Tools.Word.dll)
event SaveEventHandler^ BeforeSave {
void add(SaveEventHandler^ value );
void remove(SaveEventHandler^ value );
}
To prevent the document from being saved, set the Cancel argument of the provided CancelEventArgs object to true .
The following code example displays a message before the document is saved that asks whether you want to save the document. This example is for an application-level add-in.
No code example is currently available or this language may not be supported.
Return to top