从Office外接程序中使用Office.js API [英] Use Office.js APIs from outside an Office Add in

查看:92
本文介绍了从Office外接程序中使用Office.js API的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在Office.js文档中,有关新ExecuteAsync()方法/模式的内容如下:

In the Office.js docs one reads the following about the new ExecuteAsync() method/pattern:

这还使我们即使在Excel附加代码之外也可以使用相同的API,例如,想像一下,您想针对存储在OneDrive中的> Excel工作簿调用Excel API,但是您想从独立的Web应用程序而不是在Office 2016内部运行的应用程序调用Excel API.Windows或Office Online.这种异步模型非常适合能力."

"This also allows us to use the same APIs even outside of an Excel add- in. Imagine, for example, that you wanted to call Excel APIs against an > Excel workbook stored in OneDrive, but you wanted to do so from a stand-> alone web application, rather than one running inside Office 2016 for Windows or Office Online. This async model lends itself well to that capability."

尽管如此,我仍然无法找到有关如何在独立的Web应用程序中实现此类功能的任何解释.有人知道怎么做吗?

Nevertheless, I wasn't able to find any explanation on how to implement such functionality in a standalone web application. Does anyone know how to do that?

推荐答案

这是指新的Excel REST API.请在此处查看文档: http://graph.microsoft.io/en-us/docs/api-reference/v1.0/resources/excel

This is referring to the new Excel REST API. Please see the documentation here: http://graph.microsoft.io/en-us/docs/api-reference/v1.0/resources/excel

Excel是迄今为止唯一支持REST API的Office主机,但OneNote的REST API独立于Office.js.

Excel is so far the only Office host to support REST APIs, with the exception of OneNote's REST APIs which are independent from the Office.js effort.

这篇关于从Office外接程序中使用Office.js API的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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