Bonsoir à tous je viens de connaitre PHPExcel que je trouve super sympas.
Voici mon code :
Et biensûre ce n'est q'un exemple sauf la formule.
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4 $objPHPExcel->setActiveSheetIndex(0) ->setCellValue('B2', 'Je m appel jules') ->setCellValue('B4', '=SUBSTITUE(B2;" ";" ")');
Avec cette formule il me met comme erreur :
Pouvez vous m'aider s'il vous plait merci d'avance
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9 ( ! ) Fatal error: Uncaught exception 'Exception' with message 'Formation!B4 -> Formula Error: An unexpected error occured' in C:\wamp\www\PHPExcel\Classes\PHPExcel\Cell.php on line 288 ( ! ) Exception: Formation!B4 -> Formula Error: An unexpected error occured in C:\wamp\www\PHPExcel\Classes\PHPExcel\Cell.php on line 288 Call Stack # Time Memory Function Location 1 0.0116 377608 {main}( ) ..\01simple-download-xls.php:0 2 0.2061 5118776 PHPExcel_Writer_Excel5->save( ) ..\01simple-download-xls.php:73 3 0.3151 6985784 PHPExcel_Writer_Excel5_Worksheet->close( ) ..\Excel5.php:171 4 0.3311 7150520 PHPExcel_Cell->getCalculatedValue( ) ..\Worksheet.php:441
Partager