OfficeDev / office-js

A repo and NPM package for Office.js, corresponding to a copy of what gets published to the official "evergreen" Office.js CDN, at https://appsforoffice.microsoft.com/lib/1/hosted/office.js.
https://learn.microsoft.com/javascript/api/overview
Other
678 stars 95 forks source link

AutoShowTaskpaneWithDocument for DocumentCreated on Word JS API #5030

Open shinji-morimitsu opened 2 hours ago

shinji-morimitsu commented 2 hours ago

Are there anyway to set 'Office.AutoShowTaskpaneWithDocument' for Word.DocumentCreated object?

We are planning to implement to open a Word file on the our server. And we expect it would be opened with AddIn opened.

So, that means, I want to set 'Office.AutoShowTaskpaneWithDocument' for Word.DocumentCreated object. Is it possible?

RuizhiSunMS commented 2 hours ago

Hi @shinji-morimitsu , thx for the submit. Is this doc talking about what you are interested in https://learn.microsoft.com/en-us/office/dev/add-ins/develop/automatically-open-a-task-pane-with-a-document? And btw, please add some information like which platform you aim to and the impact of your addin and others. These would be helpful for us to triage quickly.

shinji-morimitsu commented 2 hours ago

@RuizhiSunMS Thanks for your reply.

Is this doc talking about what you are interested in https://learn.microsoft.com/en-us/office/dev/add-ins/develop/automatically-open-a-task-pane-with-a-document?

Yes, right. That way on the page works for the current Word document. My expectation is that Word.DocumentCreated.open() works with addin started state.

Target platform is Word on both PC and Mac.