Search code examples
ms-wordoffice-jsoffice365-apps

Word 2016 Add-in: detect document Save


I'm developing a Word 2016 Add-in (Word API + Office.js) and I'm wondering if it's possible to get notified when the user is about to save the document.

The document is stored as a LOB on application's database, extracted on a temporary path and opened as a normal file in Word. I need to create a custom handler for Save or Save As command, in order to programmatically update the database with a fresh copy of the document.

Do you think that Word API has a way to set custom handlers on Save and other user events? Thanks!


Solution

  • this event is currently not supported in Office.js. I recommend in the meantime to expose a button to make the user explicitly save the document on the LOB, either in the ribbon or in the add-in itself.