我正在尝试打开一个 word 文档进行操作。但是在下面的代码中,“wordApp.Selection”始终为空
object missing = System.Reflection.Missing.Value;
Word._Application wordApp = new Word.Application();
Word._Document aDoc =wordApp.Documents.Open(ref fPath1, ref missing, ref readOnly, ref missing, ref missing, ref missing, ref missing, ref missing, ref missing, ref missing, ref missing, ref isVisible, ref missing, ref missing, ref missing, ref missing);
Word.Selection selection = wordApp.Selection
关于我在这里缺少什么的任何想法。为什么 wordApp.Selection 被设置为空。?
谢谢。