https://issues.apache.org/bugzilla/show_bug.cgi?id=46143

           Summary: setLineStyleColor for comments donot work
           Product: POI
           Version: 3.5-dev
          Platform: PC
        OS/Version: Windows Server 2003
            Status: NEW
          Severity: normal
          Priority: P2
         Component: HSSF
        AssignedTo: [email protected]
        ReportedBy: [EMAIL PROTECTED]


setLineStyleColor on a comment is not working.
See the following code. Added setLineStyle to the sample for creating Comments.

http://poi.apache.org/hssf/quick-guide.html 

            HSSFComment comment2 = patr.createComment(new HSSFClientAnchor(0,
0, 0, 0, (short)4, 8, (short) 6, 11));
            //modify background color of the comment
            comment2.setFillColor(204, 236, 255);

            HSSFRichTextString string = new HSSFRichTextString("Normal body
temperature");

            //apply custom font to the text in the comment
            HSSFFont font = wb.createFont();
            font.setFontName("Arial");
            font.setFontHeightInPoints((short)10);
            font.setBoldweight(HSSFFont.BOLDWEIGHT_BOLD);
            font.setColor(HSSFColor.RED.index);
            string.applyFont(font);

            comment2.setString(string);
            //by default comments are hidden. This one is always visible.
            comment2.setVisible(true);

            comment2.setAuthor("Bill Gates");
            comment2.setLineStyle(HSSFTextbox.LINESTYLE_DOTGEL);
            comment2.setLineStyleColor(255,0,10);
            /**
             * The second way to assign comment to a cell is to implicitly
specify its row and column.
             * Note, it is possible to set row and column of a non-existing
cell.
             * It works, the commnet is visible.
             */
            comment2.setRow(6);
            comment2.setColumn((short)1);


-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to