将word文档转化问html文件

一种办法是

1、 首先得添加一个dll文件Aspose.Words.dll文件。

2、 在项目中添加引用该文件。

protected void btnChange_Click(object sender, EventArgs e)

    {

string filePath = Server.MapPath("~/help/视维视频租用平台用户手册.docx");

       Aspose.Words.Document d = new Aspose.Words.Document(filePath);

       d.Save("d:\\1.html", SaveFormat.Html);

    }

posted @ 2013-10-15 22:30  源起  阅读(185)  评论(0编辑  收藏  举报