Question
No textFrame in graphic cells
I’m trying to insert a textframe into a tables cell:
for (var r = 0; r<table.rows.length; ++r) {
var cell = table.rows[r].cells[0];
cell.contents = "";
cell.cellType = CellTypeEnum.TEXT_TYPE_CELL;
var myFrame = cell.textFrames.add();
myFrame.geometricBounds = [0, 0, 20, 40];
myFrame.contents = "!";
};This leads to the error that a “graphic cell cannot contain a textframe” (Error 11310). But I explicitly set it to CellTypeEnum.TEXT_TYPE_CELL, right?
How does this work?
