如何在C#中以html格式保存文档 [英] How to save the document in html format in c#

查看:175
本文介绍了如何在C#中以html格式保存文档的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

string localpath=DevelopFollow.docx; 
doc.SaveAs("c:" + localPath + ".html", Word.WdSaveFormat.wdFormatFilteredHTML, Type.Missing, Type.Missing, Type.Missing, Type.Missing, Type.Missing, Type.Missing, Type.Missing,Type.Missing, Type.Missing, Type.Missing, Type.Missing, Type.Missing, Type.Missing, Type.Missing);


它显示错误为:


it showing error as:

File error has occured.
c://loacalPath.docx.html

推荐答案

请参阅以下两篇文章:
word到html 1 [ word to html 2 [ ^ ]
See this two post:
word to html 1[^]
word to html 2[^]


这篇关于如何在C#中以html格式保存文档的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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