Word.Application wordApp = new Word.ApplicationClass();//创建组件对象 这个地方就报出导常
“错误:System.Runtime.InteropServices.COMException (0x800A1098): 因为没有打开的文档,所以这一命令无效”
接下来在
Word.Document wordDoc = wordApp.Documents.Add(ref objNothing,ref objNothing
,ref objNothing,ref objNothing);//创建文档对象
就出现错误提示:word内在不足,请现在保存文档 这个错误的表现
是Windows Server 2003的安全性问题。
在Microsoft Word 文档的DCOM里的 "identity "选项里,设置成用管理员帐户执行即可。
“错误:System.Runtime.InteropServices.COMException (0x800A1098): 因为没有打开的文档,所以这一命令无效”
接下来在
Word.Document wordDoc = wordApp.Documents.Add(ref objNothing,ref objNothing
,ref objNothing,ref objNothing);//创建文档对象
就出现错误提示:word内在不足,请现在保存文档 这个错误的表现
是Windows Server 2003的安全性问题。
在Microsoft Word 文档的DCOM里的 "identity "选项里,设置成用管理员帐户执行即可。