-
Notifications
You must be signed in to change notification settings - Fork 3.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unable to access External Workbook #4075
Comments
I forget to tell that I have some charts and use this in appServiceProvider \PhpOffice\PhpSpreadsheet\Settings::setChartRenderer( If i remove this part from provider everything work but the charts will not appear in the generated file. |
Unable to duplicate - using your code, I have no problem saving in either Html or Dompdf including the graph. Can you upload the spreadsheet that is giving you a problem? |
Hello,
I have this issues where i get this error "Unable to access External Workbook".
I'm trying to convert an xlsx file into a pdf or html but on writer save i get this error.
I tryed in two ways:
1)
$xml = new PhpOffice\PhpSpreadsheet\Reader\Xlsx();
$xml->setIncludeCharts(true);
$spreadsheet = $xml->load($localTempFile);
$writer = new \PhpOffice\PhpSpreadsheet\Writer\Html($spreadsheet);
$writer->setIncludeCharts(true);
$writer->writeAllSheets();
$writer->save('throwing_excel.html');
$reader = \PhpOffice\PhpSpreadsheet\IOFactory::createReader('Xlsx');
$reader->setIncludeCharts(true);
$document = $reader->load($localTempFile);
$writer = new Dompdf($document);
$writer->setIncludeCharts(true);
$writer->save('throwing_excel.pdf');
The error is thrown when I call the save method on the last row.
The text was updated successfully, but these errors were encountered: