Quantcast
Channel: Adobe Community: Message List - FrameMaker Scripting
Viewing all articles
Browse latest Browse all 3715

Re: iterate all tables in framemaker

$
0
0
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


Viewing all articles
Browse latest Browse all 3715

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>