Apache POI merge cells from a table in a Word document
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/dAO6j.png I have been reviewing all the questions related to this topic and I have found some answers for applying grid span to the cells, but I couldn't find a real solution. Here is the code I have from examples obtained from google and from this site: XWPFDocument document = new XWPFDocument(); XWPFTable table = document.createTable(7, 2); fillTable(table); XWPFTableCell cellRow1 = table.getRow(0).getCell(0); XWPFTableCell cellRow2 =