0
是否可以在添加新的PHPExcel之前清除所有單元格註釋?我有工作代碼,增加了一個評論,但我想先明確在特定細胞中所有現有的評論:PHPExcel清除單元格註釋
$pexr = PHPExcel_IOFactory::createReader('Excel2007');
try {
$pex = $pexr->load($fn);
} catch (Exception $e) {
//...
return;
}
}
// ...
sheet = $pex->getSheetByName($curMed);
...
$sheet->setCellValue($col . $row, $r[7]);
$sheet->getStyle($col . $row)->getNumberFormat()->setFormatCode('#,##0');
$sheet->getComment($col . $row)->getText()->createText("My lovely comment\r\n");
不幸的是我找不到像文檔中的「清除」任何東西。
感謝,將溶液冷卻,將嘗試儘快確認! – MichaSchumann
工程就像一個魅力,非常感謝你! – MichaSchumann