Search code examples
office-jsonedriveoffice-js-helpers

Execute addin function automatically on startup


I have searched through and as a final resort i am heading to the experts here.

I would like to know if the below are possible or may be possible in future roadmap

  1. Expected date for Document.open() to available ? 2.Is there any way to open and edit(in office online) a document which is in One Drive.
  2. Can we execute any addin functions as soon as the document is opened without actually launching the addin ?

Thanks Ahmed


Solution

  • There is no such event as of now, please vote in our userVoice channel.

    That been said, you have one alternative for this, it’s called our auto open task pane feature.

    https://learn.microsoft.com/en-us/office/dev/add-ins/design/automatically-open-a-task-pane-with-a-document

    You need to open a task pane though, but Please give a try and give us feedback.