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 2010/01/06 12:58:35 UTC
DO NOT REPLY [Bug 47188] setCellComment corrupts workbook (2007 XML
format)
https://issues.apache.org/bugzilla/show_bug.cgi?id=47188
--- Comment #6 from rajeev <rs...@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