I need to delete a column from a table in a PPT slide. I don't see an method on
XSLFTable that will allow me to do this. I've experimented extensively with
this, but it doesn't work properly:
CTTableGrid tableGrid =
table.getCTTable().getTblGrid();
CTTableCol[] columns = tableGrid.getGridColArray();
columns = ArrayUtils.remove(columns,
columnIndexToDelete);
tableGrid.setGridColArray(columns);
It always seems to delete the last column of the table, regardless of the index
passed in.
I've also tried this:
table.getCTTable().getTblGrid().removeGridCol(columnIndexToDelete);
It results in the same behavior. Any suggestions?
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]