poi-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 47698] New: Incorrect cell colors.
Date Mon, 17 Aug 2009 04:30:02 GMT
https://issues.apache.org/bugzilla/show_bug.cgi?id=47698

           Summary: Incorrect cell colors.
           Product: POI
           Version: 3.5-dev
          Platform: PC
        OS/Version: Windows XP
            Status: NEW
          Severity: normal
          Priority: P2
         Component: HSSF
        AssignedTo: dev@poi.apache.org
        ReportedBy: nguyenhongthangnl@gmail.com


--- Comment #0 from Thang Nguyen <nguyenhongthangnl@gmail.com> 2009-08-16 21:30:02 PDT
---
Created an attachment (id=24142)
this is the file to show affter using poi 3.5-dev write to new files.

Hi,

I want to ask you about the cell color on poi 3.5-dev, this is my function to
use for this solution.

public static void main(String[] args) throws Exception {

        String file = "files\\Color\\color2.xls"; (file input)
        String newFile = file + "_new.xls"; (file output)

        HSSFWorkbook wb = new HSSFWorkbook(new FileInputStream(file));
                //(create new style for new file)
        HSSFCellStyle style = wb.createCellStyle(); 

        wb.write(new FileOutputStream(newFile));

}

on input file I filled a cell with color RBG:  (221, 217, 195) and I run main
method to create CellStyle but file output display yellow color ( 255,255,152)
not the same with input file. I don't know what's happen? Please help me.


Please see details attach files.

Thanks.

-- 
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


Mime
View raw message