【问题标题】:Url opening in Web browser instead of taskpane在 Web 浏览器而不是任务窗格中打开 URL
【发布时间】:2022-09-29 05:27:57
【问题描述】:

我开发了一个excel自定义函数。我在自定义函数中添加了 helpurl。当我单击该功能时,它会在 Web 浏览器中打开 URL。我想在 excel 任务窗格中打开该 URL。我遇到了问题。这是我的功能。如何仅在任务窗格或 Microsoft 的帮助部分中打开该 URL?

 /**
     * Multiply By 10.
     * @customfunction
     * @helpurl https://localhost:3000/taskpane.html
     * @param count First number.
     * @returns {number} The multiply by ten.
     */
    async function count(count) {
      return count * 10;
    }

    标签: office-js office-addins excel-addins custom-functions-excel excel-web-addins


    【解决方案1】:

    OfficeJS 不提供以编程方式打开任务窗格的任何内容。但是您可以将任务窗格绑定到文档,这样它就可以与文档一起自动打开。在Automatically open a task pane with a document 文章中阅读更多相关信息。

    如果加载项中使用了共享运行时,您可以访问任务窗格以从自定义函数加载网页,请参阅Configure your Office Add-in to use a shared runtime 了解更多信息。

    最后,请记住,当开发团队完成规划过程时,会考虑技术社区的功能请求。使用 github 标签:Type: product feature requesthttps://aka.ms/M365dev-suggestions

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2020-05-03
      • 2014-05-22
      • 2020-10-24
      • 1970-01-01
      • 1970-01-01
      • 2020-05-03
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多