https://bz.apache.org/bugzilla/show_bug.cgi?id=65292
Thomas Hoffmann <[email protected]> changed: What |Removed |Added ---------------------------------------------------------------------------- OS| |All --- Comment #1 from Thomas Hoffmann <[email protected]> --- Digging into the sourcecode of POI, I found that the empty cells are causing the problems. class: XWPFTable private void addColumn(XWPFTableRow tabRow, int sizeCol) { if (sizeCol > 0) { for (int i = 0; i < sizeCol; i++) { tabRow.createCell(); } } } If i change the loop and additionally fill the cell with a paragraph, MS word won't complain about a corrupted file any more. So, instead of "tabRow.createCell()" I do: XWPFTableCell c = tabRow.createCell(); c.addParagraph(); Error is gone after this change in the POI sources. Maybe you can check, whether empty cells violate the specification. -- You are receiving this mail because: You are the assignee for the bug. --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
