I am using php-excel-reader
, but got error on reading .xlsx
file. So does this support xlsx format. Or what is other solution available.
My requirement is just to read the file(xls, xlsx and ods)
and render on html page.
PHPExcel
seems too much as there is no requirement for editing the excel file.
Loading a Spreadsheet File $inputFileName = './sampleData/example1. xls'; /** Load $inputFileName to a Spreadsheet Object **/ $spreadsheet = \PhpOffice\PhpSpreadsheet\IOFactory::load($inputFileName); See samples/Reader/01_Simple_file_reader_using_IOFactory. php for a working example of this code.
The easiest way to open a file with the XLSX extension is to use a relatively recent version of Microsoft Excel. You will have no trouble opening files in the XLSX format if you use version2007 or higher. The latest version of the Excel spreadsheet program is included in Microsoft 365.
For compatibility, XLS has higher compatibility than XLSX. XLS is readable by all Microsoft Excel versions while XLSX is only readable by Excel 2007 and later versions. besides, XLS is able to hold the spreadsheets either including Macros or not, while XLSX isn't capable to support Macros.
Yes php support to read .xlsx file.
For that you have to use PHPExcel library.
I have created script to read excle file, You can download script from : https://www.dropbox.com/s/oao0eskflu8nyz1/PHPExcleReader.zip?dl=0
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With