开发者

Display Word Document inside ASP.Net page

开发者 https://www.devze.com 2023-02-22 22:01 出处:网络
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.

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.

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).

How can I display the word document in my iFrame?


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

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.


PowerTools for Open XML contains an open source, free implementation of a conversion from DOCX to HTML formatted with CSS. The module HtmlConverter.cs supports all paragraph, character, and table styles, fonts and text formatting, numbered and bulleted lists, images, and more. See http://bit.ly/1bclyg9

0

精彩评论

暂无评论...
验证码 换一张
取 消