Page 1 of 1

Table Vertical Merging

PostPosted: Tue Nov 13, 2018 1:37 am
by Ermac10k
Hello!
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:

Code: Select all
    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 = new VMerge(); 
            merge.setVal(mergeVal);   
            tableCellProperties.setVMerge(merge); 
        } 
    }


And i've found some variations of this one. And no one works!
What's wrong with it?

Thank you in advance!