我的客户开发了一个在应用程序中使用WordAPI 1.1和1.2调用的Office应用程序。他们运行下面的函数,在WordAPI执行检查:WordAPI 1.1和1.2在Office for Apps中的用法
function TestWordAPI() {
if (Office.context.requirements.isSetSupported('WordApi', 1.1)) {
WriteResponse('word api 1.1 supported.');
}
else
{
WriteResponse('word api 1.1 is not supported.');
}
if (Office.context.requirements.isSetSupported('WordApi', 1.2)) {
WriteResponse('word api 1.2 supported.');
}
else
{
WriteResponse('word api 1.2 is not supported.');
}
}
当他们部署应用程序在桌面客户端的Word它好工作。他们在Office Online服务器上安装SharePoint 2016 onprem。 他们还在SharePoint中部署了相同的应用程序。该应用程序在Office在线和普通Office客户端中给出了不同的结果。
在办公室上网,他们看到word api 1.1 is not supported." and "word api 1.2 is not supported
在Office客户端,他们看到word api 1.1 is supported." and "word api 1.2 is supported.
然而,当我们测试了我们最新的电流通道构建的应用程序,它是比记录“2015年12月更新的新版本1601(Build 6568.1000)或更高版本“在https://dev.office.com/reference/add-ins/requirement-sets/word-api-requirement-sets 我们看到它不支持1.1和1.2。
此外,客户已记录Office客户端在线服务器版本1608(内部版本7601.6800)。
请帮助我,如果有任何其他依赖项,我们可能会在这里丢失。
我刚刚测试了OneDrive for Business中的代码,发现它不受支持。我在代码中丢失了什么吗? –
我假设这是一个OnPrem环境,对不对?你在SPO试过了吗? –
是的,客户环境是SP Onprem,因为我们在结束时为客户建立准确的onprem环境时遇到了一些问题,所以我们在Once drive for Business中进行了测试。你想让我在SPO中测试它吗?我可以尝试 –