Quantcast
Channel: npoi Discussions Rss Feed
Viewing all articles
Browse latest Browse all 637

New Post: Cell Comments appears to corrupt xls file after creating/adding over 1405

$
0
0
Is there a max number of comments NPIO will support, have created sheets with 32377 comments, but crashes excel on a save. Filtered down the comments, and at 1405 comments added, the file will save, at 1406 comments added, file crashes excel. Comments are over several sheets in the workbook.

The code (cut down)
HSSFPatriarch patr = (HSSFPatriarch)excelSheet.CreateDrawingPatriarch();
//error is class holding position of cell and text
IComment comment = patr.CreateCellComment(new HSSFClientAnchor(0, 0, 0, 0, error.Column, error.Row, error.Column + 3, error.Row + 3));
comment.String = new HSSFRichTextString(error.ErrorDescription);
comment.Author = "XXX";
excelCell.CellComment = comment; //excelCell is ICell

Viewing all articles
Browse latest Browse all 637

Trending Articles