Catchable fatal error: Argument 1 passed to
PHPExcel_IOFactory::createWriter()
must be an instance of PHPExcel, null given, called in C:\\xampp\\htdocs\\PHP\\print.php
on line 19 and defined in C:\\xampp\\htdocs\\PHP\\Classes\\PHPExcel\\IOFactory.php
on line 129
Try to Install PHPExcel Library via Composer composer require phpoffice/phpexcel . and then include autoload.php file.
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.