You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@poi.apache.org by bu...@apache.org on 2011/06/18 11:53:48 UTC

DO NOT REPLY [Bug 50728] file error about setting 255th column width

https://issues.apache.org/bugzilla/show_bug.cgi?id=50728

Yegor Kozlov <ye...@dinom.ru> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |NEEDINFO

--- Comment #8 from Yegor Kozlov <ye...@dinom.ru> 2011-06-18 09:53:48 UTC ---
I still can't reproduce it. Setting size of  255th column in a new workbook
works OK. Below is my test code that produces output readable both by Excel
2003 and Excel 2010:


        HSSFWorkbook wb = new HSSFWorkbook();
        HSSFSheet sheet = wb.createSheet();

        HSSFCell cell = sheet.createRow(0).createCell(255);
        cell.setCellValue("xxxxxxxxxxx");
        sheet.setColumnWidth(255, 76*256);


        FileOutputStream fileOut = new FileOutputStream("bug-50728.xls");
        wb.write(fileOut);
        fileOut.close();


You sample code depends on "workbook1.xls", if it is required to reproduce the
bug then please attach this file too.

I'm using the latest build from trunk.

Yegor

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@poi.apache.org
For additional commands, e-mail: dev-help@poi.apache.org