Quantcast
Channel: PHPExcel Forum Rss Feed
Viewing all articles
Browse latest Browse all 2707

New Post: How to load or display a specific sheet in the browser

$
0
0
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:
             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! :)

Viewing all articles
Browse latest Browse all 2707

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>