office-addins - Office.EventType.DocumentSelectionChanged(在 Excel 中)不适用于所有 Web 浏览器

标签 office-addins office-js

Code sample

我正在尝试在 Excel 在线文档中添加 DocumentSelectionChanged 事件句柄(在所有浏览器中测试)。从过去 15 天开始,创建此事件失败。

请帮帮我

P.S:同一事件在 Excel 2013 桌面环境中运行良好

 Office.context.document.addHandlerAsync(Office.EventType.DocumentSelectionChanged, function(eventArgs) {
     console.log(eventArgs);
 }, function(asyncResult) {
     console.log(asyncResult);
 });

OSF.DDA.AsyncResult {value: undefined, status: "failed", error: OSF.DDA.Error}error: OSF.DDA.Errorcode: 5001message: "An internal error has occurred."name: "Internal Error"proto: OSF.DDA.Errorconstructor: (n,t,i)proto: Objectstatus: "failed"value: undefined__proto__: OSF.DDA.AsyncResultconstructor: (n,t)proto: Object

这里是测试链接 http://aka.ms/R2yi5b

最佳答案

感谢您的耐心等待。我很高兴地告诉您,此修复程序已部署,并且现在可在所有网络浏览器上运行。再次感谢您提交反馈。

干杯, 天空

关于office-addins - Office.EventType.DocumentSelectionChanged(在 Excel 中)不适用于所有 Web 浏览器,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/33542902/

相关文章:

c# - 如何为 Word 文档加载项创建 AfterSave 事件

excel - 如何查看 Office.context.document.settings 中存储的所有内容?

javascript - 如何插入或获取内容控件、Outlook Web 插件 JavaScript?

angular - 在 Office 加载项生成器 Yeoman 中运行 "yo office"时出现执行策略错误

office-js - 无法在邮件插件中使用 window.history.replaceState 功能

excel - 如何使用 Office.js 查找 Office AddIn Host(它是 Word 应用程序还是 Excel)?

javascript - Word JS 加载项 - 如何在客户端计算机上存储用户特定数据

javascript - 使用 Office JS 遍历 Word 文档

excel - 有什么方法可以将更改添加到 Excel 插件所做的撤消/重做堆栈?

c# - 以编程方式替换段落中的格式化文本(链接、内容)