Bug 58676

Summary: Column width too narrow for cells with word wrap
Product: POI Reporter: MS <Magnus.Selhammar>
Component: HSSFAssignee: POI Developers List <dev>
Status: RESOLVED INVALID    
Severity: minor    
Priority: P2    
Version: unspecified   
Target Milestone: ---   
Hardware: Other   
OS: All   

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.