Hi,
Can you explain me why method Color.getR() return value “-1”(for red text in cell) but every Color component must have a range 0 to 255? Can you check this with following code and attached file? What is a problem?
String path = “/home/emisia/Desktop/formatting-test.xls”;
Workbook workbook = new Workbook(path);
Worksheet worksheet = workbook.getWorksheets().get(0);
Cell cell = worksheet.getCells().get(0);
FontSetting[] characters = cell.getCharacters();
FontSetting fontSetting = characters[4];
Color color = fontSetting.getFont().getColor();
int red = color.getR();
System.out.println(red);
Thanks,
Bojan