2012-02-03 56 views
0

我試圖對單元格設置註釋,但無論設置爲IComment.Visible = false,它總是可見的。在NPOI 1.2.3中,一切按預期工作,但在NPOI 1.2.4中發生了這個問題。這是下面的代碼片段。謝謝。NPOI 1.2.4忽略IComment.Visible值

IComment cellComment = patriarch1.CreateCellComment(new HSSFClientAnchor(0, 0, 0, 0, 4, 2, 14, 5)); 
    HSSFRichTextString richText = new HSSFRichTextString("Some notes on the cell..."); 
    richText.ApplyFont(commentFont); 
    cellComment.String = richText; 
    cell.CellComment = cellComment; 
    cellComment.Visible = false; // ignored 

回答

0

這是NPOI 1.2.4中的一個錯誤。它已經被固定在1.2.5