Hi, I create a excel file by POI. and i want to set cell "shrink to fit", but
i could not find the right method.
I study some tutorials and find the Class "ExtendedFormatRecord " can do it. 
But i did not know how to relate the property to cell HSSFCellStyle.

 ExtendedFormatRecord e = new ExtendedFormatRecord();
 e.setShrinkToFit(true);


Thanks.
-- 
View this message in context: 
http://apache-poi.1045710.n5.nabble.com/How-to-set-the-cell-shrink-to-fit-tp3304220p3304220.html
Sent from the POI - Dev mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to