I'm using poi to read tables from MS Word 2003.
The tables in doc file has 4 columns and 100 rows,the fourth column could be empty, the others couldn't. When iterating each row to get column count, some row returns 4, while others returns 3.
My question is why some row physically having 4 columns could possibly return 3 column?Why in some time the empty column could not be counted?
The snippet:
for (int i=2;i<rowCount;i++)
{
TableRow row = tb.getRow(i);
int columnCount = row.numCells();
System.out.println(columnCount);
}
My document: