PHPExcel:找不到此工作簿的默认样式

时间:2015-07-23 20:47:30

标签: php phpexcel import-from-excel

我正在尝试使用PHPExcel + DOMPdf将xlsx转换为pdf并获取此异常: “找不到此工作簿的默认样式”。

这是一些堆栈跟踪:

Warning: Invalid argument supplied for foreach() in /var/www/clients/client46/web339/web/phpexcel/Classes/PHPExcel/Reader/Excel2007.php on line 365

Warning: Invalid argument supplied for foreach() in /var/www/clients/client46/web339/web/phpexcel/Classes/PHPExcel/Reader/Excel2007.php on line 402

Warning: Invalid argument supplied for foreach() in /var/www/clients/client46/web339/web/phpexcel/Classes/PHPExcel/Reader/Excel2007.php on line 1715

Fatal error: Uncaught exception 'PHPExcel_Exception' with message 'No default style found for this workbook' in /var/www/clients/client46/web339/web/phpexcel/Classes/PHPExcel.php:930 
Stack trace: #0 /var/www/clients/client46/web339/web/phpexcel/Classes/PHPExcel/Writer/HTML.php(142): PHPExcel->getDefaultStyle() #1 

我也试过tcpdf,但我也一直都会遇到这个错误。

0 个答案:

没有答案