I'm using javabridge with php to create excel file using poi (org.apache.poi.hssf.usermodel.HSSFWorkbook class)
To set column width for default font (Arial 10) i calculate max length and use formula
strlen($string) * 256 that works fine
Since the first row is BOLD i have to change formula. A part of the title is hidden when this column has the max length.
Do I have to replace 256 by other value ?
I will use Arial 10 everywhere to make it easier