Hi,
when I set comment for more than one cell, the shape of comment block for each cell is different.
Here my code:
Dim iPatriarch As IDrawing = m_iCurrentSheet.CreateDrawingPatriarch()
Dim rAnchor As XSSFClientAnchor = New XSSFClientAnchor(0, 0, 0, 0, 0, 0, 6, 3)
Dim iComment As IComment = iPatriarch.CreateCellComment(rAnchor)
Dim rText As XSSFRichTextString = New XSSFRichTextString(p_strComment)
iComment.String = rText
iCell.CellComment = iComment
I use NPOI 2.1.1.0 and XLSX Format of Excel 2010 file.
I open the file, make changes and save the same file under another file name.
In attachment you will find the screenshots with different shapes of comment.
Will it be fixed in next Version of NPOI or I do something wrong?
Comments: ** Comment from web user: tonyqus **
when I set comment for more than one cell, the shape of comment block for each cell is different.
Here my code:
Dim iPatriarch As IDrawing = m_iCurrentSheet.CreateDrawingPatriarch()
Dim rAnchor As XSSFClientAnchor = New XSSFClientAnchor(0, 0, 0, 0, 0, 0, 6, 3)
Dim iComment As IComment = iPatriarch.CreateCellComment(rAnchor)
Dim rText As XSSFRichTextString = New XSSFRichTextString(p_strComment)
iComment.String = rText
iCell.CellComment = iComment
I use NPOI 2.1.1.0 and XLSX Format of Excel 2010 file.
I open the file, make changes and save the same file under another file name.
In attachment you will find the screenshots with different shapes of comment.
Will it be fixed in next Version of NPOI or I do something wrong?
Comments: ** Comment from web user: tonyqus **
As I remember, this issue should be fixed. Can you try NPOI 2.1.3? let me know the result. Thank you!