在asp.net中查看MS-Office文档视图的问题 [英] problem to view MS-Office document view in asp.net

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

问题描述

我开发了asp.net应用程序,我上传了ms-office word文档。然后我在我的应用程序中做了文档视图,但文档在浏览器中查看没有得到正确的样式,因为它在文档中。



请帮助我......!

先谢谢....!

I had developed asp.net application, in that i upload ms-office word document. then i did document view in my application, but the document is view in browser was not getting proper style as it is in the document.

please help me...!
Thanks in advance....!

推荐答案

http://www.dotnetspider.com/forum/324227-Uploading-viewing-word-doc-asp.net- c.aspx [ ^ ]



这可以帮助您
http://www.dotnetspider.com/forum/324227-Uploading-viewing-word-doc-asp.net-c.aspx[^]

This may help you


通过iframe使用Google Doc Viewer指定要显示的DOC文件。这是你应该添加的代码:



Use Google Doc Viewer through an iframe and specify the DOC file you want to display. This is the code you should add:

<iframe src="http://docs.google.com/gview?url=YOUR_ABSOLUTE_URL_TO_DOC_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中查看MS-Office文档视图的问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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