简体   繁体   English

php-excel-reader是否支持xlsx

[英]Does php-excel-reader support xlsx

I am using php-excel-reader , but got error on reading .xlsx file. 我正在使用php-excel-reader ,但在阅读.xlsx文件时出错。 So does this support xlsx format. 这也支持xlsx格式。 Or what is other solution available. 或者其他解决方案是什么。

My requirement is just to read the file (xls, xlsx and ods) and render on html page. 我的要求只是读取文件(xls, xlsx and ods)并在html页面上渲染。

PHPExcel seems too much as there is no requirement for editing the excel file. PHPExcel似乎太多了,因为不需要编辑excel文件。

Yes php support to read .xlsx file. 是php支持读取.xlsx文件。

For that you have to use PHPExcel library. 为此,您必须使用PHPExcel库。

I have created script to read excle file, You can download script from : https://www.dropbox.com/s/oao0eskflu8nyz1/PHPExcleReader.zip?dl=0 我已创建脚本来读取excle文件,您可以从以下网址下载脚本: https ://www.dropbox.com/s/oao0eskflu8nyz1/PHPExcleReader.zip?dl = 0

Judging from this issue it doesn't seem to work. 这个问题来看,它似乎不起作用。 They referr you to PHPExcel if you want to use xlsl files. 如果要使用xlsl文件,它们会将您引用到PHPExcel。 From a first look, this seems like a better alternative anyways. 从第一眼看,这似乎是一个更好的选择。

As far as I know php-excel-reader doesn't support xlsx. 据我所知,php-excel-reader不支持xlsx。 PHPExcel would be the way to go. PHPExcel将是最佳选择。 That being said it might be better to store whatever is in your xslx files in a less proprietary way. 据说,以较不专有的方式存储xslx文件中的任何内容可能更好。 Taking a long shot I would assume your xslx doesn't contain calculations which do belong in xlsx files but rather table data which would be better stored in some database (txt, csv, sqlite, a database server). 从长远来看,我认为你的xslx不包含属于xlsx文件的计算,而是包含更好地存储在某些数据库(txt,csv,sqlite,数据库服务器)中的表数据。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM