Voilà, j'ai changé un peu le code!
j'ai plus la même erreur mais ça ne donne rien!!
je n'ai pas encore mon graphe (l'image) dans le fichier excel
imagepng($Graph, NULL, 85);
//$contents = ob_get_contents();
$fh = fopen("$conf_server_location_filepath/temp/temp_chart.bmp", "a+" ) or die("impossible ouvrir image");
while (!feof($fh) )
{
$contents = fread($fh, 4096);
fwrite( $fh, $contents );
}
//fwrite( $fh, $contents );
fclose( $fh );
echo "reussi";
$worksheet =& $workbook->addWorksheet();
$worksheet->insertBitmap($currentLine++, 0, "$conf_server_location_filepath/temp/temp_chart.bmp", 0, 0, 1, 1);
$Graph->done();
Si quelqu'un peut m'aider!!
Merci d'avance!