New model "Excel 2007" : first col at wrong position

The first column start at id 0 instead of id 1. At id 0, the first column move at Z position. 
Documentation : https://phpspreadsheet.readthedocs.io/en/latest/topics/migration-from-PHPExcel/#column-index-based-on-1
This commit is contained in:
Mistral Oz - LWEP 2019-12-10 18:25:30 +01:00 committed by GitHub
parent 24e9d3fdf0
commit b92ec604ec
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -262,7 +262,10 @@ class ExportExcel2007new extends ModeleExports
$this->workbook->getActiveSheet()->getStyle('1')->getFont()->setBold(true);
$this->workbook->getActiveSheet()->getStyle('1')->getAlignment()->setHorizontal(PhpOffice\PhpSpreadsheet\Style\Alignment::HORIZONTAL_LEFT);
$this->col=0;
$this->col=1;
if (! empty($conf->global->MAIN_USE_PHP_WRITEEXCEL)) {
$this->col=0;
}
foreach($array_selected_sorted as $code => $value)
{
$alias=$array_export_fields_label[$code];
@ -302,7 +305,10 @@ class ExportExcel2007new extends ModeleExports
global $conf;
// Define first row
$this->col=0;
$this->col=1;
if (! empty($conf->global->MAIN_USE_PHP_WRITEEXCEL)) {
$this->col=0;
}
$reg=array();