简体   繁体   中英

PHPExcel OpenOffice Calc (ods) files issue

sorry for my english...

I am trying implement phpexcel to read diferent type of files specifically .xls, .xlsx and .ods files.

I am using this example for my tests

With .xls files... all ok. with .xlsx files... all ok. but.. with .ods files, it's showing only 1 empty row.

I have used also this other example . At this one I have selected manually the class to use and file to use, but the same problem.

Some idea about this issue?

Regards

I solved it!

phpexcel was not taking the correct actual sheet, I fixed it, setting manually the sheet wanted, adding $objPHPExcel->getActiveSheet() before this line.

$objPHPExcel->setActiveSheetIndex(0);

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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