I try to create a simple table. Everything is ok but... I cannot merge cells.
My table has a simple plan:
- Code: Select all
| TYPE | VALUE |
-----------------
| | val1 |
merged ------|
| | val2 |
-----------------
I've found this function:
public void setCellVMerge(Tc tableCell, String mergeVal) {
if (mergeVal != null) {
TcPr tableCellProperties = tableCell.getTcPr();
if (tableCellProperties == null) {
tableCellProperties = new TcPr();
tableCell.setTcPr(tableCellProperties);
}
VMerge merge ...