Hi there, I just recently used PHPExcel and I want to know how to display an excel file into the browser as an HTML. I have succeeded in displaying the first sheet of an excel file but I also want to know how am I going to display the other sheets as well.
Here is my code:
Here is my code:
include 'bundles/laravel-phpexcel/PHPExcel/IOFactory.php';
$inputFileType = 'Excel2007';
$inputFileName = 'sampleData/test.xlsm';
$objPHPExcel = PHPExcel_IOFactory::load($inputFileName);
$objWriter = PHPExcel_IOFactory::createWriter($objPHPExcel, 'HTML');
$objWriter->save('php://output');
exit;
I hope you guys can help me. Thanks in advance! :)