用于Windows 2016的Excel JavaScript API 1.5版本 [英] Excel JavaScript API 1.5 Version for Office 2016 fo Windows
问题描述
您好,
我们在哪里可以获得适用于Windows 2016的Excel JavaScript API 1.5版本?
谢谢
To将项目中的Office库文件的JavaScript API更新到最新版本
在Visual Studio 2015中,打开或创建一个新的 Office加载项项目。
在左侧窗格中,选择更新并完成软件包更新过程。
转到第6步。
选择 工具> NuGet Package Manager >
管理解决方案的Nuget套餐。
在 NuGet Package Manager ,选择 nuget.org for
包来源和可升级
过滤器。并选择Microsoft.Office.js。
在左侧窗格中,选择更新并完成包更新过程。
在加载项HTML页面的 head 标记中,注释掉或删除任何现有的办公室。 js脚本引用并引用Office库的更新JavaScript API,如下所示(:
< span class ="tag">< script src = " https://appsforoffice.microsoft.com/lib/1/hosted/Office.js" 类型 = " text / javascript" >< / script>
信息:
/ 1 /
在office 前面。 js
指定使用Office.js版本1中的最新增量版本。
参考:
更新用于Office和清单模式文件的JavaScript API版本
问候
Hi,
Where can we get Excel JavaScript API 1.5 Version for Office 2016 fo Windows ?
Thanks
Hi REG35,
you need to upgrade your Office 365 to Version 1703 (Build 8067.2070) for Api 1.5
Reference:
Excel JavaScript API requirement sets
To update the JavaScript API for Office library files in your project to the newest release
In Visual Studio 2015, open or create a new Office Add-in project.
In the left pane, choose Update and complete the package update process.
Go to step 6.
Choose Tools > NuGet Package Manager > Manage Nuget Packages for Solution.
In the NuGet Package Manager, select nuget.org for Package source and Upgrade available for Filter. and select Microsoft.Office.js.
In the left pane, choose Update and complete the package update process.
In the head tag of your add-in's HTML pages, comment out or delete any existing office.js script references and reference the updated JavaScript API for Office library like as follows (:
<script src="https://appsforoffice.microsoft.com/lib/1/hosted/Office.js" type="text/javascript"></script>
Info: The
/1/
in front ofoffice.js
in the CDN URL specifies to use the latest incremental release within version 1 of Office.js.Reference:
Update the version of your JavaScript API for Office and manifest schema files
Regards
这篇关于用于Windows 2016的Excel JavaScript API 1.5版本的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!