[英]How To Use Script Lab With Word Online
Script Lab states in the description, that it works also with Office Online. Script Lab在描述中指出,它也适用于 Office Online。 How does that work?这是如何运作的? In Office Online I don't see any possibilities to add the Script Lab app ( https://www.office.com/apps ):在 Office Online 中,我看不到添加脚本实验室应用程序 ( https://www.office.com/apps ) 的任何可能性:
The above question leads to the two follow-up questions:上述问题引出两个后续问题:
If it is possible to use Script Lab (respectively, using the Office JavaScript API) for Office Online , I assume it must be possible to use the JavaScript API on a website to interact with a Word Online document (loaded into an iFrame) without having to install an Office AddIn?如果可以将 Script Lab(分别使用 Office JavaScript API)用于Office Online ,我认为必须可以在网站上使用 JavaScript API 与 Word Online 文档(加载到 iFrame 中)进行交互,而无需安装Office 插件? Would it be possible when hosting Office Online yourself using an Office Online Server (OOS)?使用 Office Online Server (OOS) 自己托管 Office Online 是否可行?
If it is possible for Script Lab to dynamically change its functionality (by editing the JavaScript API code), is it also possible to create an AddIn that dynamically can update its content or functionality automatically (similar to the smooth update mechanism from ElectronJS )?如果 Script Lab 可以动态更改其功能(通过编辑 JavaScript API 代码),是否也可以创建一个可以动态自动更新其内容或功能的 AddIn(类似于ElectronJS的平滑更新机制)?
I did it this way.我是这样做的。 On the Word Online ribbon, navigate Insert |在 Word Online 功能区上,导航插入 | Add-ins |加载项 | Store .存储。 Then enter Script Lab in the search.然后在搜索中输入 Script Lab。 Then click Add by Script Lab item.然后单击按脚本实验室项添加。
UPDATE 9/9/20: It is not possible to use the Office JavaScript library outside of an Office Add-in. 20 年 9 月 9 日更新:无法在 Office 加载项之外使用 Office JavaScript 库。 It needs that context to initialize.它需要该上下文来初始化。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.