object Nothing = Type.Missing;
获得当前编辑word对象
Word.Application wordApp = (Word.Application)System.Runtime.InteropServices.Marshal.GetActiveObject("Word.Application");
//Word文档变量
Document wordDoc;
// 添加一个新的word文档
//wordDoc = wordApp.Documents.Add(ref Nothing, ref Nothing, ref Nothing, ref Nothing);
// 获取当前编辑的word文档
wordDoc = wordApp.ActiveDocument;