Microsoft.Office.Interop.Word.ApplicationClass wordApp = new ApplicationClass();
Microsoft.Office.Interop.Word.Documents docs = wordApp.Documents;
Type docsType = wordApp.Documents.GetType();
object filename = @"e:\test\css属性大全.doc";
Microsoft.Office.Interop.Word.Document wordDoc = new Document();
wordDoc = (Microsoft.Office.Interop.Word.Document)docsType.InvokeMember("open", System.Reflection.BindingFlags.InvokeMethod, null, docs, new object[] { filename, true, true });请帮忙把最后一句解释一下
特别是new object[] { filename, true, true };
这个应该是传给open方法的参数为什么这样的就可以了
在word vba中打开一个文档的open方法的参数有10多个
这样说的这两个true,true
是什么意思呢