【问题标题】:WordAPI 1.1 and 1.2 usage in Apps for OfficeWordAPI 1.1 和 1.2 在 Office 应用程序中的使用
【发布时间】:2017-02-18 10:19:25
【问题描述】:

我的客户开发了一个在代码中使用 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-sets/word-api-requirement-sets 中记录的“2015 年 12 月更新,版本 1601(版本 6568.1000)或更高版本”更新 我们看到 1.1 和 1.2 都不支持它。

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

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

【问题讨论】:

    标签: sharepoint ms-word word-web-addins


    【解决方案1】:

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

    【讨论】:

    • 刚刚在OneDrive for Business中测试了代码,发现不支持。我在代码中遗漏了什么吗?
    • 我假设这是一个 OnPrem 环境,对吧?您在 SPO 中尝试过吗?
    • 是的,客户环境是 SP Onprem,因为我们在最终设置客户的确切本地环境时遇到了一些问题,我们在 One drive for Business 中对其进行了测试。你想让我在 SPO 中测试它吗?我可以试试
    猜你喜欢
    • 2013-10-24
    • 2018-07-24
    • 1970-01-01
    • 2016-09-16
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多