fix devops error
This commit is contained in:
@@ -51,20 +51,13 @@ class Export
|
||||
$styleFont->setBold(true);
|
||||
$styleFont->setSize(12);
|
||||
$styleFont->setName('Arial');
|
||||
// $styleFont->getColor()->setARGB(PHPExcel_Style_Color::COLOR_GREEN);
|
||||
$this->sheet->setCellValue($coord, $txt);
|
||||
if ($this->debug) {
|
||||
echo "Col $col Ligne $lig : $coord Text $txt<br/>";
|
||||
}
|
||||
}
|
||||
|
||||
public function writeCell($lig, $col, $txt)
|
||||
{
|
||||
$coord = $this->conv($lig, $col);
|
||||
$this->sheet->setCellValue($coord, $txt);
|
||||
if ($this->debug) {
|
||||
echo "Col $col Ligne $lig : $coord Text $txt<br/>";
|
||||
}
|
||||
}
|
||||
|
||||
public function exportRow($data, $config = null)
|
||||
@@ -129,26 +122,20 @@ class Export
|
||||
if ($this->debug) {
|
||||
return;
|
||||
}
|
||||
// Debug::message($this->xls);
|
||||
$objWriter = PHPExcel_IOFactory::createWriter($this->xls, 'Excel2007');
|
||||
// Debug::message($objWriter);
|
||||
// exit;
|
||||
if (! $this->stockage) {
|
||||
$this->header();
|
||||
$objWriter->save('php://output');
|
||||
} else {
|
||||
// $objWriter->save(str_replace('.php', '.xlsx', __FILE__));
|
||||
$objWriter->save('text.xlsx');
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
public function conv($lig, $col)
|
||||
{
|
||||
$c = static::convColtoTxt($col);
|
||||
$lig = $this->lig;
|
||||
|
||||
return "$c$lig";
|
||||
return $c.$lig;
|
||||
}
|
||||
|
||||
public function convColtoTxt($col)
|
||||
|
||||
Reference in New Issue
Block a user