简体   繁体   English

在WOPI客户端中打开嵌入插件的文档时,自动在Excel Online中插入插件

[英]Automatically insert addin in Excel Online when opening addin-embedded document in WOPI client

We've been developing a JS addin for Excel Online/Desktop Excel and one of the major issues that we are still having is that we can't seem to get the addin to automatically insert when we open it in Office Online (users have to go through the process of inserting it through the Ribbon). 我们一直在为Excel Online / Desktop Excel开发JS插件,而我们仍然遇到的主要问题之一是,当我们在Office Online中打开插件时,似乎无法自动插入该插件(用户必须进行将其插入功能区的过程)。 Our application uses the MS-WOPI integration and acts as the host page for Office Online. 我们的应用程序使用MS-WOPI集成,并充当Office Online的宿主页。

We noticed that embedding this Script Lab addin into an excel document - https://github.com/OfficeDev/Office-OOXML-EmbedAddin - is actually giving us the behaviour that we want - IF we upload the document into OneDrive and open it from there. 我们注意到,将此脚本实验室加载项嵌入到excel文档中-https: //github.com/OfficeDev/Office-OOXML-EmbedAddin-实际上正在为我们提供所需的行为-如果我们将文档上传到OneDrive并从中打开它那里。 It seems that opening the file in Office Online through OneDrive will automatically insert and load the Script Lab addin. 似乎通过OneDrive在Office Online中打开文件将自动插入并加载Script Lab加载项。

However, when we try uploading the same Script Lab embedded document in our application (ie serving it through WOPI) we don't see the same automatic insertion/loading of the addin when we try to open the file in Office Online in the host iframe. 但是,当我们尝试在应用程序中上载相同的Script Lab嵌入式文档(即通过WOPI提供文件)时,当我们尝试在主机iframe中的Office Online中打开文件时,不会看到相同的自动插入/加载插件。

Is it possible to get a JS addin to automatically insert into a WOPI served document when you open it in Office Online? 在Office Online中打开文档时,是否可以将JS插件自动插入到WOPI提供的文档中? Or is this a functionality specific to OneDrive? 还是这是OneDrive特有的功能?

Auto open in browser/online platform is only supported for One drive/O365-admin-hosted add-ins only. 仅在一个驱动器/ O365-admin托管的加载项中支持在浏览器/在线平台中自动打开。 Wopi or on-perm platforms don't support this feature. Wopi或on-perm平台不支持此功能。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM