PHPExcel pour générer des rapports excel
Bonjour
J'ai bien installé PHPExcel dans mon environnement avec xampp. le teste de configuration bien passé mais lorsque je veux générer ma propre rapport excel j'ai trouver des erreurs :
Citation:
Warning: include(PHPExcel.php) [function.include]: failed to open stream: No such file or directory in C:\xampp\htdocs\Analyseur_texte\excel_teste.php on line 2
Warning: include() [function.include]: Failed opening 'PHPExcel.php' for inclusion (include_path='.;C:\xampp\php\PEAR') in C:\xampp\htdocs\Analyseur_texte\excel_teste.php on line 2
Warning: include(PHPExcel/Writer/Excel2007.php) [function.include]: failed to open stream: No such file or directory in C:\xampp\htdocs\Analyseur_texte\excel_teste.php on line 3
Warning: include() [function.include]: Failed opening 'PHPExcel/Writer/Excel2007.php' for inclusion (include_path='.;C:\xampp\php\PEAR') in C:\xampp\htdocs\Analyseur_texte\excel_teste.php on line 3
Fatal error: Class 'PHPExcel' not found in C:\xampp\htdocs\Analyseur_texte\excel_teste.php on line 5
mon code :
Code:
1 2 3 4 5 6 7 8 9 10 11 12 13
|
include 'PHPExcel.php';
include 'PHPExcel/Writer/Excel2007.php';
$workbook = new PHPExcel;
$sheet =$workbook->getActiveSheet();
$sheet->setCellValue('A1','MaitrePylos');
$writer = new PHPExcel_Writer_Excel2007($workbook);
$records = './fichier.xlsx';
$writer->save($records); |
quelqu’un me aidé s'il vous plais ?