0

我的客户开发了一个在代码中使用 WordAPI 1.1 和 1.2 调用的 Office 应用程序。他们运行以下函数来对 WordAPI 执行检查:

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.');
}
}

当他们在 Desktop Word 客户端中部署应用程序时,它运行良好。他们有带有 Office 在线服务器的 SharePoint 2016 onprem。他们还在 SharePoint 中部署了相同的应用程序。该应用程序在 Office Online 和普通 Office 客户端中给出不同的结果。

在 Office Online 中,他们看到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.

但是,当我们在最新的当前频道版本中测试该应用程序时,该版本比https://dev.office.com/reference/add-ins/requirement中记录的“2015 年 12 月更新,版本 1601(Build 6568.1000)或更高版本”更新-sets/word-api-requirement-sets 我们看到 1.1 和 1.2 都不支持它。

此外,客户还拥有文档中的 Office 在线服务器版本 1608(内部版本 7601.6800)。

如果我们在这里可能缺少任何其他依赖项,请帮助我。

4

1 回答 1

0

我们的需求验证存在问题,但现在已修复,我们已经在 OneDrive for Business 和消费者中对其进行了测试,并按预期工作。请再试一次,如果您仍然看到问题,请告诉我们。

于 2017-02-18T02:19:25.457 回答