要求:使用 office.js/angular app 读取 list 文件中的 AutoConfig 元素并将 根据 AutoConfig 值在任务 Pane 中隐藏/显示我的 Angular 应用程序中的内容。
第一种方法 我将放置一个自定义标签,即 <AutoConfig>true</AutoConfig>
在 list 文件中,此自定义标记应由任务 Pane 中的 Angular app/office.js 读取。
第二种方法将从<SourceLocation https://localhost:3000/index.html?autoConfig=true>
中传递URL参数如果无法在 list 文件中提供自定义标签(第一种方法)
你能帮我看看我怎样才能达到这个要求吗?
最佳答案
恐怕目前 Office 加载项无法读取自己的 list 。但您可以在 Create an API for reading resource strings and URLs from the add-in manifest 为相同的想法投票.
关于excel - 从 Excel 任务 Pane 内的 Angular 应用程序读取 Office 加载项 list 文件的设置,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/55165819/