doc = app.ActiveDoc;
table = doc.FirstTblInDoc ;
while(table.ObjectValid()){
row = table.FirstRowInTbl;
while (row.ObjectValid()) { //traverse rows cell = row.FirstCellInRow; while (cell.ObjectValid()) { //traverse cells in row pgf = cell.FirstPgf; while( pgf.ObjectValid()) { // this is where you can put code to get text, or text properties from the paragraph. } pgf = pgf.NextPgInFlow; } cell = cell.NextCellInRow; } row = row.NextRowInTbl; } table =table.NextTblInDoc;
}
IMPORTANT!
line 06 MUST be after the first while-loop