https://bz.apache.org/bugzilla/show_bug.cgi?id=65292
Thomas Hoffmann <thomas.hoffm...@speed4trade.com> changed: What |Removed |Added ---------------------------------------------------------------------------- OS| |All --- Comment #1 from Thomas Hoffmann <thomas.hoffm...@speed4trade.com> --- 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: dev-unsubscr...@poi.apache.org For additional commands, e-mail: dev-h...@poi.apache.org