C# を使用して MS Word のテーブル コンテンツを読み込んでいますが、結合されたセル情報を取得する方法がわかりません。このようなテーブル:
----------------------
| | c(1,1)| c(1,2) |
|--------------------
| | c(2,1) | c(2,2)|
|--------------------
| | c(3,1) |
|------------------|
セル c(3,1) は結合されたセルですが、情報を取得できません。私のコード:
for (int i = 1; i <= doc.Tables.Count; i++)
{
Microsoft.Office.Interop.Word.Table nowTable = doc.Tables[i];
for (int rowPos = 1; rowPos <= nowTable.Rows.Count; r
{
for (int columPos = 1; columPos <= nowTable.Colum)
{
String strContent = nowTable.Cell(rowPos, columPos).Range.Text;
}
}
}