https://bz.apache.org/bugzilla/show_bug.cgi?id=61454
Bug ID: 61454 Summary: [PATCH] Example ToHtml does not respect column width and long cell content breaks html layout Product: POI Version: 3.16-FINAL Hardware: PC Status: NEW Severity: minor Priority: P2 Component: SS Common Assignee: dev@poi.apache.org Reporter: cfr2...@gmx.net Target Milestone: --- Created attachment 35253 --> https://bz.apache.org/bugzilla/attachment.cgi?id=35253&action=edit Screenshot of the broken layout - column with long content. In class org.apache.poi.ss.examples.html.ToHtml POI provides a very good way of converting Excel sheets to HTML. The resulting html document contains the correct formatting etc. But column width of the original excel file is not respeceted; instead the resulting table is formatted with css directive "table-layout:auto". In general this is not a problem. Only for there are excel cells with long content (especially if there are no blanks), the resulting table shows a very wide column and the remaining columns can only be seen by using the scroll bar. See attached screenshot. To fix it, I provide the patch. Patch is based on POI 3.16, but these classes have not changed since a year or so; therefore it shouldn't be a problem to apply to 3.18. -- 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