由于缺少支持的API,无法在Excel for Mac上运行Office加载项 [英] Failed to run Office add-in on Excel for Mac due to lack of supported API

查看:602
本文介绍了由于缺少支持的API,无法在Excel for Mac上运行Office加载项的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


我们正在开发一个Office加载项,并在Excel for Mac上测试时遇到一些问题。


我们已向清单添加了以下要求:

<要求> 
< Sets DefaultMinVersion =" 1.1">
< Set Name =" File" />
< Set Name =" CompressedFile" />
< Set Name =" AddinCommands" />
< / Sets>
< / Requirements>

从我们看到的,所有上述需求集都存在(例如,加载项命令是在Excel功能区中可见),但在尝试调用  Office.context.document .getFileAsync
我们得到一个'未定义'。


根据此  https://dev.office.com/reference/add-ins/shared/document.getfileasync the
Document.getFileAsync 方法是  文件
要求集的一部分,不支持在Excel for Mac中。

解决方案

你好, 


根本原因有已经确定,并且计划在9月14日将补丁应用于JS库。一旦推出,我可以更新这个帖子。感谢


Hi,

We are developing an Office add-in and face some issues when testing it on Excel for Mac.

We've added the following requirements to the manifest:

 <Requirements>
       <Sets DefaultMinVersion="1.1">
           <Set Name="File"/>
           <Set Name="CompressedFile"/>
           <Set Name="AddinCommands" />
       </Sets>
   </Requirements>

From what we see, all the above requirement sets exist (e.g. The add-in commands are visible in the Excel ribbon), but when trying to call Office.context.document.getFileAsync we get an 'undefined'.

According to this https://dev.office.com/reference/add-ins/shared/document.getfileasync the Document.getFileAsync method is part of the File requirement set, which is not supported in Excel for Mac.

解决方案

Hello, 

The root cause has been identified and a patch is scheduled to be applied to JS library on 9/14. I can update this thread once it is rolled out. Thanks


这篇关于由于缺少支持的API,无法在Excel for Mac上运行Office加载项的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆