| 12
 3
 4
 5
 6
 7
 8
 9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 21
 
 | $img = $row3['IMG_ETU'];
$image = imagecreatefromstring($img);
$lien  ='trombi/'.$id.'.jpg';
imagejpeg($image, $lien, '100');
//---- mise en forme des informations et ajout à excel ----//	
$nombre = $e + 2;
//---- création de l'image si ok alors ajout à excel ----//
$objPHPExcel->getActiveSheet()->setCellValue( 'B' . $nombre, "$nombre")
							  		->setCellValue( 'C' . $nombre, "$id" )
							  		->setCellValue( 'D' . $nombre, "$nom")
							  		->setCellValue( 'E' . $nombre, "$prenom")
							  		->setCellValue( 'F' . $nombre, "$sexe")
							  		->setCellValue( 'G' . $nombre, "$mel");
$objDrawing = new PHPExcel_Worksheet_Drawing();
$objDrawing->setWorksheet($objPHPExcel->getActiveSheet());
$objDrawing->setName('Profile Image');
$objDrawing->setDescription('Profile Image');
$objDrawing->setPath($lien);
$objDrawing->setHeight(50);
$objDrawing->setCoordinates('K' . $nombre);
imagedestroy($image); | 
Partager