I was able to get the tables present in a word document using getTablesIterator() on a XWPFDocument. But is there a way to get table within a table?
Thanks in Advance, Joel
In .docx "Table" doesn't directly contain other tables, but a Table Cell may do. So, you can't ask a table for its nested tables, you have to get each cell and check those.
From a XWPFTable get your XWPFTableRow instances, then from there a XWPFTableCell. You can then call XPWFTableCell.getTables() to get any tables nested in that one cell.
Collected from the Internet
Please contact [email protected] to delete if infringement.
Comments