2012-02-03 6 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에서 수정되었습니다.

관련 문제