用于Windows 2016的Excel JavaScript API 1.5版本 [英] Excel JavaScript API 1.5 Version for Office 2016 fo Windows

查看:98
本文介绍了用于Windows 2016的Excel JavaScript API 1.5版本的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好,


我们在哪里可以获得适用于Windows 2016的Excel JavaScript API 1.5版本?


谢谢



解决方案




To将项目中的Office库文件的JavaScript API更新到最新版本




  1. 在Visual Studio 2015中,打开或创建一个新的  Office加载项项目。




    • 在左侧窗格中,选择更新并完成软件包更新过程。



    • 转到第6步。




  2. 选择  工具> NuGet Package Manager >
    管理解决方案的Nuget套餐



  3. 在  NuGet Package Manager ,选择  nuget.org for
    包来源可升级
    过滤器
    。并选择Microsoft.Office.js。



  4. 在左侧窗格中,选择更新并完成包更新过程。



  5. 在加载项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版本


问候


Deepak


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

  1. 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.

  2. Choose  Tools > NuGet Package Manager > Manage Nuget Packages for Solution.

  3. In the  NuGet Package Manager, select  nuget.org for Package source and Upgrade available for Filter. and select Microsoft.Office.js.

  4. In the left pane, choose Update and complete the package update process.

  5. 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 of office.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

Deepak


这篇关于用于Windows 2016的Excel JavaScript API 1.5版本的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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