Hi,

You should be able to use the following to set the width as
double-value, however make sure to divide the original int-value by
256 here, and this is only available for XSSF, not for HSSF as there
it is stored as int-value in the binary format:

        XSSFSheet.getColumnHelper().setColWidth(columnIndex, widthDivBy256);
        XSSFSheet.getColumnHelper().setCustomWidth(columnIndex, true);

Dominik.

On Fri, Sep 4, 2015 at 4:55 PM, atish shimpi <[email protected]> wrote:
> *void org.apache.poi.ss.usermodel.Sheet.setColumnWidth(int arg0, int arg1)*
> api takes width only in /*integer */form but as per my requirement it should
> accept float value as well, could you help me to resolve this?
>
>
>
>
> --
> View this message in context: 
> http://apache-poi.1045710.n5.nabble.com/Set-column-width-in-sensible-units-tp2304417p5720046.html
> Sent from the POI - User mailing list archive at Nabble.com.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]
>

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

Reply via email to