Bonjour à tous,

Donc voila, je fais un statistique est le résultat doit être dans un format excel ( ici c'est ok )

Dans le fichier excel , j'ai 2 onglets :
On va appelé A et B

Dans l'onglet A j'ai qui a 9 colonnes et dans l'onglet B, j'ai 10 colonnes

Cependant j'arrive pas a sauté une colonne en arrière pour éviter de voir cette colonne une idée ?

Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
if ($code_paiement !== $row[7]){	
	if ($code_paiement !== ''){
		$code_paiement = $row[7];{ // si code de paiement = row 7 alors 
		if ($i > 7 and $i < $nbrcolonne )
			$i-- {
				$cell = $this->_excel->IntToExcelColumn($i-1).$coordRow; // si je me trompe pas je pense que que rétrecie la colonne en -1
				$code_paiement != $row[7];
				//	$row[7] = --$i // tu peux pas dire sa
				$this->_excel->addSheet('A');
				$this->_excel->setColumnWidth($this->_width);
				$this->_excel->setHeaderTable($this->_captions, 0, 1);
			}
			$coordRow = $coordRowSave;
			$this->_excel->addSheet('A');
			$this->_excel->setColumnWidth($this->_width);
			$this->_excel->setHeaderTable($this->_captions, 0, 1);
		}
	} else {
		$code_paiement = $row[7];
		$this->_excel->setSheetName('V a');
		$this->_excel->setColumnWidth($this->_width2);
		$this->_excel->setHeaderTable($this->_captions2, 0, 1);
	}
	$this->titreRender();
	$this->_excel->setCenterPage(true, true);
}