操作のためにWord文書を開こうとしています。ただし、以下のコードでは、「wordApp.Selection」は常にnullです。
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がnullに設定されるのはなぜですか?
ありがとう。