poi-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject [Bug 55796] New: cellType is not override by integer value zero.
Date Tue, 19 Nov 2013 11:36:07 GMT
https://issues.apache.org/bugzilla/show_bug.cgi?id=55796

            Bug ID: 55796
           Summary: cellType is not override by integer value zero.
           Product: POI
           Version: 3.9
          Hardware: PC
            Status: NEW
          Severity: critical
          Priority: P2
         Component: XSSF
          Assignee: dev@poi.apache.org
          Reporter: bhargav.ce86@gmail.com

The following code fails to set the cell type by integer value zero. Other
types are properly set but zero number seems to have issues. The HSSF
Implimentation does not have this issue.

CODE
=====
//column is a short type variable set with 0,1,2,3,...
XSSFCell cell = row.createCell(column);
cell.setCellType(0)
system.out.println("cell type value : "+cell.getCellTyep);


OUTPUT
======
cell type value 3.


if we set cell type with integer value one.it will be override with one.
CODE
=====
XSSFCell cell = row.createCell(column);
cell.setCellType(1)
system.out.println("cell type value : "+cell.getCellTyep);


OUTPUT
======
cell type value 1.


please response me as soon as possible.
Thank you.

-- 
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


Mime
View raw message