table = doc.FirstTblInDoc;
while(table.ObjectValid()){
row = table.FirstRowInTbl;
while (row.ObjectValid()) {
cell = row.FirstCellInRow;
while(cell.ObjectValid()){
pgf = cell.FirstPgf;
while(pgf.ObjectValid()){
alert(pgf);
pgf = pgf.NextPgfInFlow;
}
cell = cell.NextCellInRow;
}
row = row.NextRowInTbl;
}
table = table.NextTblInDoc;
}
the result of the above script is infinite loop.. how to i fix that?
pls help