【发布时间】:2014-07-02 03:06:57
【问题描述】:
当批准日期晚于今天时,我正在尝试更改行的颜色。在那一刻,行应该用红色着色......知道为什么这段代码不起作用吗?
// Create a row and put some cells in it. Rows are 0 based.
Row = sheet.createRow((short) count);
if(wdContext.nodeRecallStore().getRecallStoreElementAt(i).getApprovaldate().after(today))
// {
HSSFCellStyle style = wb.createCellStyle();
style.setFillBackgroundColor(new HSSFColor.RED().getIndex());
Row.setRowStyle(style);
// }
【问题讨论】:
标签: java excel colors apache-poi