当前位置:编程学习 > C#/ASP.NET >>

.net中调用word模版保存后,怎样把word文件保存为page页面格式

小弟用的
WordDoc.SaveAs(ref oNewFileName, ref Missing,ref Missing, ref 
Missing,ref Missing,ref Missing,ref Missing,
    ref Missing,ref Missing,ref Missing, ref Missing, ref Missing, ref 
Missing, ref Missing, ref Missing, ref Missing);
保存后打开word是web格式的
怎样写,保存为普通页面格式的word文档 --------------------编程问答-------------------- 拜托各位高手。 --------------------编程问答-------------------- --------------------编程问答--------------------

object obj = Missing.Value;
object objType = Microsoft.Office.Word.WdSaveFormat.wdFormatHTML;
doc.SaveAs(ref fileName1, ref objType , ref obj, ref obj, ref obj, ref obj, ref obj, ref obj, ref obj, ref obj, ref obj, ref obj, ref obj, ref obj, ref obj, ref obj);

objType 决定了保存的格式!保存成word的话就是wdFormatDocument!
根据Dll不一样可能名称不一样,一般都是
Microsoft.Office.Interop.Word.WdSaveFormat.wdFormatDocument
你可以试试 --------------------编程问答-------------------- 非常感谢,回去试试。
补充:.NET技术 ,  C#
CopyRight © 2012 站长网 编程知识问答 www.zzzyk.com All Rights Reserved
部份技术文章来自网络,