简体   繁体   English

JavaScript API是否可以与存储在OneDrive上的Excel文件一起使用?

[英]JavaScript API to work with Excel files stored on OneDrive?

I want to create an web application that uses an Excel file stored on the users OneDrive, preferably directly from JavaScript. 我想创建一个Web应用程序,该应用程序使用存储在用户OneDrive中的Excel文件,最好直接使用JavaScript。 The web application should not be running inside Excel on the client, so I think that excludes the JavaScript API for Office . 该Web应用程序不应在客户端的Excel内运行,因此我认为不包括OfficeJavaScript API

Are there any alternative APIs or is it simply not possible? 是否有其他替代API或根本不可能?

You can use the OneDrive Javascript SDK to get Excel files (download) from a user's OneDrive, and then manipulate that content once retrieved from the service. 您可以使用OneDrive Javascript SDK从用户的OneDrive获取Excel文件(下载),然后从服务中检索到该内容。

You can use the OneDrive Javascript SDK directly to traverse the file hierarchy and find an Excel file, or you can use the Web picker to let a user choose (or save) the file (free UI, no need to build hierarchy traversal). 您可以直接使用OneDrive Javascript SDK遍历文件层次结构并找到Excel文件,也可以使用Web选择器让用户选择(或保存)文件(免费的UI,无需构建层次结构遍历)。

In terms of actually manipulating the Excel file, there are certainly modules and libraries available to help do this (node.js, python) 就实际操作Excel文件而言,肯定有可用的模块和库来帮助完成此操作(node.js,python)

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

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