我如何转换的.docx使用asp.net的HTML? [英] How do I convert a .docx to html using asp.net?

查看:212
本文介绍了我如何转换的.docx使用asp.net的HTML?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Word 2007中保存其文档的.docx格式,它是真的,在这一堆东西,包括与文档的XML文件的zip文件。

Word 2007 saves its documents in .docx format which is really a zip file with a bunch of stuff in it including an xml file with the document.

我希望能够采取.docx文件拖放到一个文件夹中我的asp.net web应用程序,并有code。打开.docx文件和渲染文档(的XML部分)网页

I want to be able to take a .docx file and drop it into a folder in my asp.net web app and have the code open the .docx file and render the (xml part of the) document as a web page.

我一直在网上搜索的详细信息,这一点,但到目前为止还没有发现多少。我的问题是:

I've been searching the web for more information on this but so far haven't found much. My questions are:


  1. 你(a)使用XSLT将XML转换为HTML,或(b)使用XML操作库在.NET中(如的XDocument和的XElement 3.5)转换为HTML或(c)其他?

  2. 请您知道这样做了,我可以作为一个起点使用任何开源库/项目?

谢谢!

推荐答案

试试这个<一个href=\"http://blog.maartenballiauw.be/post/2008/01/11/$p$pview-Word-files-%28docx%29-in-HTML-using-ASPNET-OpenXML-and-LINQ-to-XML.aspx\"相对=nofollow>帖子?我不知道,但可能是你所期待的。

Try this post? I don't know but might be what you are looking for.

这篇关于我如何转换的.docx使用asp.net的HTML?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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