Do you want to: Suggest a feature
Document Server version: 8.2 Community Edition
For example, as shown in the figure below, I have three cells. I tried to obtain the tag of the first cell using the following code according to the Office API.
The result is not a function.
let oDocument = Api.GetDocument();
let oTable = oDocument.GetAllTablesOnPage(0)[0];
let oTableCell = oTable.GetCell(0,0). GetContent(). GetElement(0). GetTag();
console.log("oTableCell", oTableCell);
// oTable. GetCell(...). GetContent(...). GetElement(...). GetTag is not a function
There are even more strange issues, such as the image I uploaded, where you can see that the third cell is an image.
I can use version 7.1
oTable.GetCell(0,2). GetContent(). GetElement(0). GetTag();
Retrieve the tag of the image
But after updating to 8.2, it also became
oTable.GetCell(...). GetContent(...). GetElement(...). GetTag is not a function
How can I obtain the tag of a cell in version 8.2?