Home › Forums › DITA and XMetaL Discussion › How to add table caption? › Reply To: How to add table caption?
Reply to: How to add table caption?
May 7, 2009 at 6:14 pmI would build a loop and not use the insertElement method as it works with selection object only. Sorry, code is not testedn just as a hint …
if ( strElement == “table”)
{rng.InsertCALSTable(intRows,intCols,strElement,blnHeader);
//added new lines to insert para element in each cell
var entryList = rng.getElementsByTagName(“entry”);
For Each entryElem in entryList {
pElem = ActiveDocument.createElement(“p”);
entryElem.appendChild(pElem);
}
rng = null;
Dlg = null;
return;}