Programmatically add an App to an Office Document
We need a way to programmatically create add an App to an existing Office Document. The use case is to provide users with documents that already have the App attached to it instead of asking to add it manually.
Thank you. Could you elaborate on a couple of scenarios that would be interesting to you?
Angus McDonald commented
Documents that are saved with task-pane Add-Ins enabled for them are re-opened with the same Add-In already shown. This can be a disadvantage when sending a document outside of your organisation (the external user gets an error if they can't run your Add-In!).
However, we need some way for an Add-In to be summoned for some documents and not others. Something like the temp document that can be interacted with from the application.createDocument() method before it is opened - except based around an event that fires for all documents opened in a Word application with this Add-In running.