[英]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中,那么您将需要ClientContext和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.
如果它是Office文件,那么Matthew是正确的,Open XML SDK是解决之道。
如果您引用的是存储在SharePoint网站中的任何文档,则可以通过SharePoint Online客户端轻松使用它,否则Office 365的NuGET包中还包含一些库,这些库支持Office 365文档阅读或其他内容
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.