在ASP.Net页面内显示Word文档 [英] Display Word Document inside ASP.Net page

查看:267
本文介绍了在ASP.Net页面内显示Word文档的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想显示一个单词Document,它位于我的IIS上.我想在aspx页面上的iFrame中按原样显示整个文档.

I want to display a word Document, which is sitting on my IIS. I want to display the whole document as is, inside a iFrame on my aspx page.

我知道我可以使用MS Word库,但是无法在将要托管应用程序的服务器上安装Word(如果我错了,请纠正我:如果不在服务器上安装MS Word,就不能仅使用dll).

I know I can use MS Word Libs, but I cannot install Word on Server where application will be hosted, (Correct me if I am wrong: I cannot use just dlls without installing MS Word on Server).

如何在iFrame中显示word文档?

How can I display the word document in my iFrame?

推荐答案

最简单的方法可能是包含 Google文档查看器.

Probably the easiest way would be to include the Google Docs Viewer.

其他方法可能是使用 Aspose.Words (商业)将Word转换为PDF,然后使用Aspose.Pdf.Kit将PDF转换为图像,然后在线显示图像.

Other ways could be to use Aspose.Words (commercial) to convert Word to PDF and then use Aspose.Pdf.Kit to convert PDF to images and then display the images online.

这篇关于在ASP.Net页面内显示Word文档的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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