简体   繁体   中英

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.

Thanks in advance.

You should be able to use the Open XML SDK version 2.5 for this.

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.

What do you men by "office 365 document"?
Office 365 can store any type of documents, from Office (Word, Excel) to binary files.

First, you need to access your file. If they are stored in SharePoint / Skydrive then you'll need both ClientContext and SharePointOnlineCredentials .
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.

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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