I am trying to get cells from 1st column in a table. Getting an exception in " Foreach(Cells c in rng.Tables[1].Columns[1].Cells) " because the table contains columns with a mixed cell width.
for example: in the first row there are 4 cells, and in the second row there are only 2 cells (2 cells are combined together)
Error message: It is not possible to access individual columns in this collection because the table has a mixed cell width. "
Document oDoc = open word document foreach (Paragraph p in oDoc.Paragraphs) { Range rng = p.Range; foreach (Cell c in rng.Tables[1].Columns[1].Cells) {
source share