网上的方法有很多种,但是感觉都不是很靠谱


有些太复杂,都难得去实验了。


这里有几个参考网址,比较全的:


http://www.oschina.net/question/1391699_150286


http://www.oschina.net/code/snippet_127872_34706?p=1#comments


http://www.officeweb365.com/officetoview.html


有用的官方地址:


https://products.office.com/en-us/office-online/view-office-documents-online?legRedir=true&CTT=1&CorrelationId=10aefee0-79d4-4370-be66-6fe1ec482f98


最后的办法:

https://view.officeapps.live.com/op/view.aspx?src=你的urlencode以后的文件地址,要能下载的地址。