Unable to Select FirstTblInDoc In New Document
I created a new document and a new masterpage from it, then inserted a table using the Table > Insert tool. I can manually select the entire table by clicking on the table anchor, but am unable to select the table with my script...
doc = app.ActiveDoc;
tbl = doc.FirstTblInDoc;
var foundtext = tbl.MakeTblSelection (Constants.FF_SELECT_WHOLE_TABLE, 0, 0, 0);The script works fine with earlier tables I built using a page from an old document that already had a table in it, but it doesn't work with this new document. Without being able to select the table using ExtendScript, I'm unable to read the contents of the cells into my script. Any ideas on what I'm missing here?
