You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@poi.apache.org by bu...@apache.org on 2016/09/22 06:43:54 UTC

[Bug 60163] Text coloring in Excel cell is not working

https://bz.apache.org/bugzilla/show_bug.cgi?id=60163

Javen O'Neal <on...@apache.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 OS|                            |All
         Resolution|---                         |WORKSFORME
             Status|NEW                         |RESOLVED
           Severity|critical                    |enhancement

--- Comment #1 from Javen O'Neal <on...@apache.org> ---
This works for me. Adapted from
https://poi.apache.org/spreadsheet/quick-guide.html#Hyperlinks

CellStyle style = wb.createCellStyle();
Font font = wb.createFont();
font.setUnderline(Font.U_SINGLE);
font.setColor(IndexedColors.BLUE.getIndex());
style.setFont(font);

Sheet sheet = wb.createSheet();
Cell cell = sheet.createRow(0).createCell(0);
cell.setCellValue("Underlined Blue Text");
cell.setCellStyle(style);

In the future, please ask usage questions on the user or dev mailing lists
rather than opening a bug. https://poi.apache.org/mailinglists.html

-- 
You are receiving this mail because:
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@poi.apache.org
For additional commands, e-mail: dev-help@poi.apache.org