php-excel-reader 是否支持 xlsx
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/17670179/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Does php-excel-reader support xlsx
提问by Gagan
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.
我正在使用php-excel-reader
,但在读取.xlsx
文件时出错。这是否支持 xlsx 格式。或者有什么其他可用的解决方案。
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 文件。
回答by jaydeep namera
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
回答by DrColossos
Judging from this issueit doesn't seem to work. They referr you to PHPExcelif you want to use xlsl files. From a first look, this seems like a better alternative anyways.
从这个问题来看,它似乎不起作用。如果您想使用 xlsl 文件,他们会将您推荐给PHPExcel。乍一看,这似乎是一个更好的选择。
回答by Roebie
As far as I know php-excel-reader doesn't support xlsx. PHPExcel would be the way to go. That being said it might be better to store whatever is in your xslx files in a less proprietary way. 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).
据我所知 php-excel-reader 不支持 xlsx。PHPExcel 将是要走的路。话虽如此,最好以不那么专有的方式存储 xslx 文件中的任何内容。从长远来看,我会假设您的 xslx 不包含属于 xlsx 文件的计算,而是包含可以更好地存储在某些数据库(txt、csv、sqlite、数据库服务器)中的表数据。