Asp.net中的Office Viewer [英] Office Viewer in Asp.net

查看:86
本文介绍了Asp.net中的Office Viewer的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述





我需要在我的aspx页面上的单个查看器中使用Excel,Pdf,Word文档视图。如果有可能给我一个建议。

谢谢。

Hi,

I Need Excel,Pdf,Word Document View in Single Viewer on my aspx page.If it is possible give me a suggestion.
Thank you.

推荐答案

您可以通过iframe使用Google Doc Viewer并指定要显示的DOC,XLS或PDF文件。这是你应该添加的代码:



You could use Google Doc Viewer through an iframe and specify the DOC, XLS or PDF file you want to display. This is the code you should add:

<iframe src="http://docs.google.com/gview?url=YOUR_ABSOLUTE_URL_TO_THE_FILE_HERE&embedded=true" style="width:600px; height:500px;" frameborder="0"></iframe>





然后你只需要将自己的文档文件设置为url查询字符串参数d就是这样!



Then you just need to set up your own document file to the "url" query string param and that's it!


这篇关于Asp.net中的Office Viewer的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆