简体   繁体   English

在asp.net中读取/写入Office 365文档

[英]Read / Write Office 365 document in asp.net

I am new to use office 365, I want read office 365 document content using asp.net (C#), is there any api provide by office 365 for reading office 365 document. 我是使用Office 365的新手,我想使用asp.net(C#)读取Office 365文档内容,由Office 365提供的任何api都可以读取Office 365文档。

Thanks in advance. 提前致谢。

You should be able to use the Open XML SDK version 2.5 for this. 您应该能够为此使用Open XML SDK版本2.5

There's more information here . 这里有更多信息

You can use the SDK to open and parse ".docx" documents, which I think is what you need for Office 365. 您可以使用SDK打开和解析“ .docx”文档,我认为这是Office 365所需要的。

What do you men by "office 365 document"? 您对“ office 365文档”有何看法?
Office 365 can store any type of documents, from Office (Word, Excel) to binary files. Office 365可以存储从Office(Word,Excel)到二进制文件的任何类型的文档。

First, you need to access your file. 首先,您需要访问文件。 If they are stored in SharePoint / Skydrive then you'll need both ClientContext and SharePointOnlineCredentials . 如果它们存储在SharePoint / Skydrive中,那么您将需要ClientContextSharePointOnlineCredentials
Then you'll need to add/remove/modify your file. 然后,您需要添加/删除/修改文件。 If it's Office file then Matthew is correct, Open XML SDK is the way to go. 如果它是Office文件,那么Matthew是正确的,Open XML SDK是解决之道。

如果您引用的是存储在SharePoint网站中的任何文档,则可以通过SharePoint Online客户端轻松使用它,否则Office 365的NuGET包中还包含一些库,这些库支持Office 365文档阅读或其他内容

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

相关问题 如何在 ASP.Net IIdentityMessageService 中使用 SMTP 或 Office 365 帐户? - How to use SMTP or Office 365 account in ASP.Net IIdentityMessageService? 使用Office365应用的Asp.Net身份验证 - Asp.Net Identity authentication with Office365 app Office 365与Asp.net Web应用程序(MVC应用程序)集成吗? - Office 365 integration with Asp.net web application (MVC Application)? 从Office 365单一登录到Asp.Net网站 - Single sign on from office 365 to Asp.Net website 没有Active Directory的来自ASP.NET应用程序的Office365 SSO - Office365 SSO from ASP.NET application with no Active Directory 无法在ASP.NET MVC上使用ADAL for Office 365 REST API静默验证用户 - Cant authenticate user silently with ADAL for Office 365 REST API on ASP.NET MVC 使用Office 365作为ASP.net中的中继时,如何向电子邮件添加发件人(代表用户) - How to add a sender (on behalf of user) to the email when using Office 365 as relay in ASP.net 多个用户尝试使用asp.net中的Power Shell命令获取Office 365配置文件数据 - Multiple users trying to getting Office 365 profile data using power shell commands in asp.net 如何在 C# 中从 ASP.NET 调用 office-365 版本的 Excel? - How to call the office-365 version of Excel from ASP.NET in C#? 创建一个ASP.NET Web应用程序作为Office 365任务窗格AddIn - Create an ASP.NET Web Application to be an Office 365 task pane AddIn
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM