I get the following exception when i do this,
         
        XWPFTable tableTwo = xwpfDocument.createTable();
         XWPFTableRow tableTwoRowOne = tableTwo.getRow(0);
         tableTwoRowOne.getCell(0).setText("col one, row one");
         tableTwoRowOne.addNewTableCell().setText("col two, row one");
         tableTwoRowOne.addNewTableCell().setText("col three, row one");

         XWPFTableRow tableTwoRowTwo = tableTwo.createRow();
         tableTwoRowTwo.getCell(0).setText("col one, row two");
         tableTwoRowTwo.getCell(1).setText("col two, row two");
         tableTwoRowTwo.getCell(2).setText("col three, row two");

         XWPFTableRow tableTwoRowThree = tableTwo.createRow();
         tableTwoRowThree.getCell(0).setText("col one, row three");
         tableTwoRowThree.getCell(1).setText("col two, row three");
         tableTwoRowThree.getCell(2).setText("col three, row three");
         table.getRow(5).getCell(1).insertTable(1, tableTwo);


java.lang.RuntimeException:
org/openxmlformats/schemas/wordprocessingml/x2006/main/impl/CTTcImpl$1TblList



--
View this message in context: 
http://apache-poi.1045710.n5.nabble.com/Get-an-error-when-i-try-adding-a-table-in-a-cell-tp4761912p4761912.html
Sent from the POI - User mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to