I want to create a cell comment iusing NPOI Excel in C#. I have not find any clear document of that. I wrote something by myself as below.
NPOI.HSSF.Record.NoteRecord nr = new NPOI.HSSF.Record.NoteRecord();
nr.Author = "Some Author";
NPOI.HSSF.Record.TextObjectRecord tor = new NPOI.HSSF.Record.TextObjectRecord();
tor.Str = new HSSFRichTextString("something");
HSSFComment cm = new HSSFComment(nr, tor);
cm.Visible = true;
sheet.GetRow(i).Cells[k + 8].CellComment = cm;
That code is not working correctly. I can not see any comment on that cell in the generated excel file. Is there anybody to know how can I add a comment in the specific cell?