diff --git a/Documentation/Examples/Reader/exampleReader13.php b/Documentation/Examples/Reader/exampleReader13.php new file mode 100644 index 00000000..1b0bfa55 --- /dev/null +++ b/Documentation/Examples/Reader/exampleReader13.php @@ -0,0 +1,46 @@ + + + + + +PHPExcel Reader Example #13 + + + + +

PHPExcel Reader Example #13

+

Handling Loader Exceptions using Try/Catch

+'; +try { + $objPHPExcel = PHPExcel_IOFactory::load($inputFileName); +} catch(Exception $e) { + die('Error loading file "',pathinfo($inputFileName,PATHINFO_BASENAME),'": ',$e->getMessage()); +} + + +echo '
'; + +$sheetData = $objPHPExcel->getActiveSheet()->toArray(null,true,true,true); +var_dump($sheetData); + + +?> + + \ No newline at end of file