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 2007/08/01 15:19:27 UTC
DO NOT REPLY [Bug 43008] New: - HSSFCell.setColNum
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=43008>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.
http://issues.apache.org/bugzilla/show_bug.cgi?id=43008
Summary: HSSFCell.setColNum
Product: POI
Version: 3.0
Platform: All
OS/Version: All
Status: NEW
Severity: major
Priority: P3
Component: HSSF
AssignedTo: dev@poi.apache.org
ReportedBy: Bina@math.spbu.ru
--
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@poi.apache.org
For additional commands, e-mail: dev-help@poi.apache.org
DO NOT REPLY [Bug 43008] - HSSFCell.setCellNum() works incorrectly.
Posted by bu...@apache.org.
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=43008>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.
http://issues.apache.org/bugzilla/show_bug.cgi?id=43008
nick@torchbox.com changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
------- Additional Comments From nick@torchbox.com 2008-01-09 06:28 -------
HSSFCell.setCellNum() was really just setting things in the raw record, and not
touching the row, which is why you were seeing what you were
I've deprecated the method, and added a moveCell method to HSSFRow. That ought
to work as you'd expect. (It's in svn trunk now)
--
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@poi.apache.org
For additional commands, e-mail: dev-help@poi.apache.org
DO NOT REPLY [Bug 43008] - HSSFCell.setCellNum() works incorrectly.
Posted by bu...@apache.org.
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=43008>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.
http://issues.apache.org/bugzilla/show_bug.cgi?id=43008
Bina@math.spbu.ru changed:
What |Removed |Added
----------------------------------------------------------------------------
Summary|HSSFCell.setColNum |HSSFCell.setCellNum() works
| |incorrectly.
------- Additional Comments From Bina@math.spbu.ru 2007-08-01 06:25 -------
HSSFWorkbook workbook = new HSSFWorkbook();
HSSFSheet sheet = workbook.createSheet();
HSSFRow row = sheet.createRow((short) 0);
HSSFCell cell = row.createCell((short) 0);
cell.setCellNum((short) 1);
// I think that I have here the came cell as by cell reference
// but cell1 is null reference
HSSFCell cell1 = row.getCell((short) 1);
short cellNum = cell1.getCellNum();
Run this code. We've got NPE but I think that row.getCell((short) 1); operator
should return created cell because we chaged cell number (that means "column"
number) and now created cell number is 1! row.getCell((short) 0) should return
null now.
in cell.setCellNum((short) 1); operator.
--
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@poi.apache.org
For additional commands, e-mail: dev-help@poi.apache.org