Apache POI merge cells from a table in a Word document

后端 未结 3 1809
鱼传尺愫
鱼传尺愫 2020-12-18 06:58

I need to have a table with the cells on the first and second row merged.

Something like this:

Image of table (I can\'t post pics) http://i.stack.imgur.com/d

3条回答
  •  长情又很酷
    2020-12-18 07:36

    It seems xml has to be removed as well:

     XWPFTableCell removed = tableRow.getCell(idx);
     removed.getCTTc().newCursor().removeXml();
     tableRow.removeCell(idx);
    

提交回复
热议问题