https://issues.apache.org/bugzilla/show_bug.cgi?id=49262
Summary: HSSFPalette not contain exist cell foregroundcolor
Product: POI
Version: 3.6
Platform: PC
OS/Version: Windows XP
Status: NEW
Severity: normal
Priority: P2
Component: HSSF
AssignedTo: [email protected]
ReportedBy: [email protected]
I use office2007 created a xls,in Cell X1,fill foregroundcolor is
RGB(79,129,189).
But when I use HSSFWorkbook open this xls and getCustomPalette,In return
HSSFPalette object can't found Color RGB(79,129,189).
java code as follows:
HSSFWorkbook wb;
FileInputStream finput=null;
File file;
file = new File("D:\\mysoft\\rpsp-sample\\testfile\\testcopycell.xls");
try {
finput = new FileInputStream(file);
wb = new HSSFWorkbook(finput);
HSSFPalette palette = wb.getCustomPalette();
System.out.print(palette);
} catch (FileNotFoundException e) {
// TODO Auto-generated catch block
e.printStackTrace();
} catch (IOException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}finally{
try {
finput.close();
} catch (IOException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
}
--
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: [email protected]
For additional commands, e-mail: [email protected]