Bug 58676 - Column width too narrow for cells with word wrap
Summary: Column width too narrow for cells with word wrap
Alias: None
Product: POI
Classification: Unclassified
Component: HSSF (show other bugs)
Version: unspecified
Hardware: Other All
: P2 minor (vote)
Target Milestone: ---
Assignee: POI Developers List
Depends on:
Reported: 2015-12-01 14:40 UTC by MS
Modified: 2015-12-01 14:52 UTC (History)
0 users


Note You need to log in before you can comment on or make changes to this bug.
Description MS 2015-12-01 14:40:45 UTC
If all cells in a column have the property word wrap set, it is possible that the method org.apache.poi.ss.usermodel.Sheet.autoSizeColumn(int) returns a width that is much too narrow.

This does not seem to appear all the time, and it is possible that the specific Excel version used to view the file, may recalculate the widths to make the sheet look nice. 

The hardware and OS are just guesses, and I will add hopefully better details.