Skip to content
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

Adding border style to PHP_XLSX causes Excel load to fail #255

Closed
pdubinsky opened this issue Dec 22, 2019 · 0 comments · Fixed by #308
Closed

Adding border style to PHP_XLSX causes Excel load to fail #255

pdubinsky opened this issue Dec 22, 2019 · 0 comments · Fixed by #308

Comments

@pdubinsky
Copy link

pdubinsky commented Dec 22, 2019

If I add a style like this:

$styles1 = array( array(),['border'=>'left,top,bottom'],['border'=>'top,bottom'],['border'=>'top,bottom,right']); $writer->writeSheetRow('Iota-5', $row, $styles1);

MS Excel refuses to load the xlsx file while LibreOffice opens the xlsx file correctly.
If I remove the $style1 from the code like this:

$writer->writeSheetRow('Iota-5', $row);

Both MS Excel and LibrOffice load correctly.
The rows are 3 cells wide.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant