を使用してC#(3.5)の単語ドキュメントを読んでいますMicrosoft.Office.Interop.Word
。行ごとに読み取り、行をarray []に分割し、行のすべての単語を処理し、いくつかの単語を置き換えるビジネスロジックに基づいて、単語を置き換えた後、行全体を変換された行に置き換えます。
今まですべてが正常に機能しています。
今、私はいくつかの単語文書を持っています、それらは段落と表を持っています。表のすべての列を1つずつ読み取り、特定の列の列の内容を置き換えたいと思います。
アップデート
Officeオートメーションの使用
1. Opening word file.
2. Moving cursor to top of the document
3. Selecting first line using (`wordApp.Selection.endKey`) and processing all words
4. After processing the words replacing the selected line with the processed line.
5. Using wordApp.Selection.MoveDown(ref lineCount, ref countPage, ref MISSING);
moving next line processed further.
問題:1。テーブルを読み取るときに、使用時に最初の列のみを読み取るwordApp.Selection.endKey
すべての列のデータを処理したい。コンテンツが段落か表かを識別する方法はありますか?