[prev in list] [next in list] [prev in thread] [next in thread]
List: poi-dev
Subject: DO NOT REPLY [Bug 46493] BackGround color not working
From: bugzilla () apache ! org
Date: 2009-01-29 16:19:19
Message-ID: 20090129161919.0E28E234C48B () brutus ! apache ! org
[Download RAW message or body]
https://issues.apache.org/bugzilla/show_bug.cgi?id=46493
Yegor Kozlov <yegor@dinom.ru> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|ASSIGNED |RESOLVED
Resolution| |WONTFIX
--- Comment #3 from Yegor Kozlov <yegor@dinom.ru> 2009-01-29 08:19:18 PST ---
You need to set the type of fill pattern. The following snippet of code works
fine to me:
CellStyle style = wb.createCellStyle();
style.setFillForegroundColor( IndexedColors.LIGHT_BLUE.getIndex() );
style.setFillPattern(CellStyle.SOLID_FOREGROUND);
style.setFont( font );
Cell cell = row.createCell( 0 );
cell.setCellStyle( style );
cell.setCellValue( "foo" );
See the quick guide: http://poi.apache.org/spreadsheet/quick-guide.html
Yegor
--
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: dev-unsubscribe@poi.apache.org
For additional commands, e-mail: dev-help@poi.apache.org
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic