java - POI's setColumnWidth -- character width? -
public void setcolumnwidth(int columnindex, int width)
set width (in units of 1/256th of character width)
1/256th width of which character? different characters have different widths. missing here?
if see javadoc of hssfsheet.setcolumnwidth() method, has explanation of character width. pasting excerpt below:
character width defined maximum digit width of numbers 0, 1, 2, ... 9 rendered using default font (first font in workbook). unless using special font, default character '0' (zero), true arial (default font font in hssf) , calibri (default font in xssf)
refer link: http://poi.apache.org/apidocs/org/apache/poi/hssf/usermodel/hssfsheet.html#setcolumnwidth(int, int)
java excel width apache-poi
No comments:
Post a Comment