I have an odd issue the following code is the wrapper that produces a 0 length column A in the excel file.

23:04:30,287 DEBUG POIAutoSizeTest:64 - Setting 0 column is set to 0 - value of the header cell is: "id" 23:04:30,336 DEBUG POIAutoSizeTest:64 - Setting 1 column is set to 2964 - value of the header cell is: "dateCreated" 23:04:30,363 DEBUG POIAutoSizeTest:64 - Setting 2 column is set to 2964 - value of the header cell is: "dateCompleted" 23:04:30,398 DEBUG POIAutoSizeTest:64 - Setting 3 column is set to 245 - value of the header cell is: "cName"

I'm getting the colCount back from the function that write the columns. Every row is exactly the same size (same as the header [ row 0]).

        Row _r = getRow(s, 0);
        for (int i = 0; i < colCount; i++) {
            s.autoSizeColumn(i);
            Cell _c = getCell(_r, i);
logger.log(Level.DEBUG,String.format("Setting %d column is set to %d - value of the header cell is: \"%s\" ", i, s.getColumnWidth(i), _c.getStringCellValue()));
        }

Any idea why the autoSizeColumn is setting the width of the column "A" to 0?

Env: Windows 7 64-bit -- 32bit java & eclipse
I'm running JDK 1.6.0_45-b06  -- I also tried 1.7.0_21-b11
POI: poi-3.9-20121203

Thanks.

Aram

P.S. I should mention that this was working fine a month ago when I ran it. Between then and now I have done a lot of changes to the environment (re-installed eclipse, uninstall ALL java versions and installed just the two listed, cleaned out and updated JRE), so it's probably something I did in my development enviornment.

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

Reply via email to