另存为Word文档 [英] SaveAs Word Document
本文介绍了另存为Word文档的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
private void SaveAs(string strFileName, Microsoft.Office.Interop.Word.Document d)
{
object missing = System.Reflection.Missing.Value;
object fileName = strFileName;
d.SaveAs(ref fileName, ref missing, ref missing, ref missing, ref missing, ref missing, ref missing, ref missing, ref missing, ref missing, ref missing);
}
错误:
方法"SaveAs"的重载不接受"11"个参数
您能帮我解决我的代码吗?谢谢!
-dabeeyow
Error:
No overload for method ''SaveAs'' takes ''11'' arguments
Can you help me fix my code. thanks!
-dabeeyow
推荐答案
该错误清楚地表明,没有采用11个参数的"SaveAs"方法.
一次检查您的方法.需要多少个参数?
The error clearly says that there is no "SaveAs" method that take 11 arguments.
Check your method once. How many arguments it will take?
这篇关于另存为Word文档的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文