1
может кто-нибудь найти что-то не так с кодом?PHP с JavaBridge: настройка POI пользовательских цветов фона
$workbook = new java("org.apache.poi.hssf.usermodel.HSSFWorkbook");
$cellStyle = $workbook->createCellStyle();
$palette = $this->workbook->getCustomPalette();
$palette->setColorAtIndex(0x40, 0, 102, 204);
$backGroundColor = $palette->getColor(0x40);
$cellStyle->setFillForegroundColor($backGroundColor->getIndex());
...
$cell->setCellStyle($cellStyle);
этот код не будет менять цвет фона
все равно
$cellStyle->setFillForegroundColor(0xc); // 0xc is index of blue
$cellStyle->setFillBackgroundColor(0xc);
не работает ни