我们如何在本地开发服务器中托管taskpane.html?据我所知,office.js不允许它在office应用程序之外加载

发布于 2025-01-09 09:15:19 字数 129 浏览 2 评论 0原文

我确实希望我可以在 Office 应用程序之外加载 taskpane.html,这实际上是用于 powerpoint 加载项的。因为我需要运行自动化测试。据我所知,office.js不允许用户在office应用程序之外使用它。我应该怎么办?请。

I do hope I can load the taskpane.html outside the office app, which is for powerpoint add-ins actually. Because I need to run automation test. As I know, the office.js does not allow users to use it outside the office app. What should I do? Please.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

她如夕阳 2025-01-16 09:15:19

taskpane.html 可以在普通浏览器中加载,但您会收到一条错误消息,指出 Office.js 无法初始化。您可以单击任务窗格中的按钮和其他 UI,但需要 Office.js 的任何操作都不起作用。如果您想要自动化单元测试,则可以使用模拟框架来实现。请参阅 Office 加载项单元测试

The taskpane.html can load in an ordinary browser, but you will get an error saying that Office.js cannot initialize. You can click buttons and other UI in the taskpane, but nothing that requires Office.js will work. If it is unit tests that you want to automate, you can do that with the mocking framework. See Office Add-ins Unit Testing.

吾性傲以野 2025-01-16 09:15:19

您是否尝试过使用 PowerPoint 网页版 (Office 365) 运行自动化测试?

Have you try to run the automation test using PowerPoint on the Web (Office 365)?

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文