excel - 从 Excel 任务 Pane 内的 Angular 应用程序读取 Office 加载项 list 文件的设置

标签 excel angular office365 office-js office-js-helpers

要求:使用 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/

相关文章:

使用 vba 提交多个查询时 MySQL 出错

javascript - SharePoint 列表不考虑 RowLimit CAML 标记 - JavaScript

c# - 在 MSAL 中获取 EWS 的委托(delegate)权限,无需 PublicClientApplicationBuilder 和 AcquireTokenInteractive

download - 使用 Microsoft Graph 获取的 downloadUrl 的生命周期是多少?

C# 运行带参数的 excel 宏

excel - 为什么我得到这个公式有问题?

javascript - Angular 6 : Real time data

javascript - Ionic 2 - 对模型的更改不会在 View /UI 中更新

excel - VBA找不到宏怎么解决

angular - 具有自动调整大小的多个文本区域在 ionic3 中不起作用