I´m having some issues with the color and fills of my headers and grand 
totalswhen exporting tables to excel.I have modified the hssf decorator that 
comes with the display tag samples to implement my own grand total decorators 
for exporting to excel and pdf.PDF-exporting looks fine, but I´m getting really 
wierd colors and fills when exporting to excel.Since I want my totals to be 
bold, with black foreground and white background,I included this code in my 
decoratorHSSFWorkbook wb = new HSSFWorkbook();
HSSFCellStyle style = wb.createCellStyle();
style.setFillBackgroundColor(HSSFColor.WHITE.index);style.setFillForegroundColor(HSSFColor.BLACK.index);
style.setFillPattern(HSSFCellStyle.SOLID_FOREGROUND);
cell.setCellValue(my_total_value);
cell.setCellStyle(style);
But the result looks nothing like this at all.I get a white foreground on a 
grayish background,with a FillPattern that likes somethink like 
HSSFCellStyle.BIG_SPOTS.How can we change the behavior of the cell 
styles?RegardsDaniel

--
Jag använder gratisversionen av SPAMfighter för privata användare.
 2455 spam har blivit blockerade hittills.
 Betalande användare har inte detta meddelande i sin e-post.
Hämta gratis SPAMfighter här: http://www.spamfighter.com/lsv
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
displaytag-user mailing list
displaytag-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/displaytag-user

Reply via email to