html 表单另存为word文档??? 你把html 表单读到文本文件里,然后将扩展名改成doc就可以拉! 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 我正在想相反的方向怎么把richtext转换成html 直接用word打开,然后存成.doc文件就可以了。protected void ConvertToHtml(string SrcFilePath,string TargetFilePath){ Word.Application app=new Word.Application(); app.Visible=false; Object o=Missing.Value; object docFile=SrcFilePath; _Document doc=app.Documents.Open(ref docFile,ref o,ref o,ref o,ref o,ref o,ref o,ref o,ref o,ref o,ref o,ref o,ref o,ref o,ref o); object fileName=TargetFilePath; object format=Word.WdSaveFormat.wdFormatDocument; //word format doc.SaveAs(ref fileName,ref format,ref o,ref o,ref o,ref o,ref o,ref o,ref o,ref o,ref o,ref o,ref o,ref o,ref o,ref o); object t=true; app.Quit(ref t,ref o,ref o);} 感谢大家 非常感谢 athossmth(athos) 可问题没有解决怎么保存到客户端呢问题服务器不装word 的话 怎么再客户端实现 谢谢 一个DYD.dll加几行代码就可以做桌面秀(送DLL) 请问能不能在程序中动态执行代码? winform的一个关于datagrid问题 对对碰游戏的算法... 怎么保存datagrid中的数据? c++/cli支持.NET程序设计的最强有力的语言,那c#的地位呢?? 保存的结构类型数据,如何删除其中指定的记录? C#中有没有四舍五入和只入不舍的函数? c#如何共享代码? 也就是如何利用别人的代码? 关于数据绑定的问题,为什么修改后的数据不能保存到数据库中 在.Net中要得到一个表的所有属性(包括主键,索引,约束等) 请问,Form类的实例可以被序列化吗?如果能如何作
怎么把richtext转换成html
{
Word.Application app=new Word.Application();
app.Visible=false;
Object o=Missing.Value;
object docFile=SrcFilePath;
_Document doc=app.Documents.Open(ref docFile,ref o,ref o,ref o,ref o,ref o,ref o,ref o,ref o,ref o,ref o,ref o,ref o,ref o,ref o);
object fileName=TargetFilePath;
object format=Word.WdSaveFormat.wdFormatDocument; //word format
doc.SaveAs(ref fileName,ref format,ref o,ref o,ref o,ref o,ref o,ref o,ref o,ref o,ref o,ref o,ref o,ref o,ref o,ref o);
object t=true;
app.Quit(ref t,ref o,ref o);
}
可问题没有解决
怎么保存到客户端呢问题
服务器不装word 的话 怎么再客户端实现 谢谢