poi-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 47188] setCellComment corrupts workbook (2007 XML format)
Date Wed, 06 Jan 2010 11:58:35 GMT
https://issues.apache.org/bugzilla/show_bug.cgi?id=47188

--- Comment #6 from rajeev <rsingh@ketera.com> 2010-01-06 03:58:33 UTC ---
yes I am using 3.6 and without any template
below is the code snippet

    ClientAnchor anchor = ch.createClientAnchor();
                        anchor.setCol1(6+i);
                        anchor.setRow1(4+i);
                        anchor.setCol2(12+i);
                        anchor.setRow2(13+i);
                        anchor.setDx1(i*4);
                        anchor.setDy1(i*4);
                        anchor.setDx2(i*4);
                        anchor.setDy2(i*4);

                        Comment comment = drawing.createCellComment(anchor);
                        comment.setString(ch.createRichTextString(alias));
                        comment.setColumn(i);
                        comment.setRow(0);
                        cell.setCellComment(comment);

Setting co-ordinates solved the anchoring problem but still i guess the same
old error

Opening the workbook gives the following error:

Removed Records: Comments from /xl/comments1.xml part (Comments)

Not sure whether I am missing anything.

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


Mime
View raw message