让Office(word excel)显示在网页中的实现技术

来源:互联网 发布:手机运动软件 编辑:程序博客网 时间:2024/06/05 02:49

I provide follow solutions:

 

1)Only working in Chrome browser. It is very simple, we do not need to do any otherpage.

First, we must install a plugin for chromebrowser(https://chrome.google.com/webstore/detail/office-editing-for-docs-s/gbkeegbaiigmenfmjfclcdgdpimamgkj)

Second, we can open any excel by element(<ahref=’’></a>), can edit and read it.(If possible, this is a good solution)

 

2)  We need to convert excel to pdf, HTML5 can read pdf as follow code:

<objectdata="test.pdf" type="application/pdf" width="300" height="200">

</object>

 

We only need to do a simple page, add abovecode and pass the url of the pdf , it is ok.

                 But there is an issue, if that excel is very long in horizontal.   The pdf which weconverted will be caused line break.

                 Please find enclosed.

 

3)  We can do it by Cloud viewer, but most of the cloud is not free, I find a free(http://personal.crocodoc.com/api/),

We need to upload my excel to the thirdserver, they we convert it and provide us a url to display it.

If our information is secret, there is notsafety.

        

For now, I am not find any solution to display the excel directly.

0 0