"Invalid object for this request" error while placing a image in table cell.
I am having a problem while placing a image inside table cell, in case there is a overflow in the table. The cell in which i am placing the image is not visible in InDesign because the frame containing the table is smaller in size.
var oTable = oTextFrame.parentStory.tables[0];
var cells = oTable.cells;
for (var iCell = 0; iCell < cells.length; iCell++) {
var oCell = cells[iCell];
oCell.convertCellType(CellTypeEnum.GRAPHIC_TYPE_CELL);
oCell.rectangles[0].place("D:/Test.jpg");// Here i am getting error "Invalid object for this request".
}
I have also checked "isValid" for the rectangle.