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

Merge cells & Set autofilter #69

Closed
AndreeaMb opened this issue Jul 23, 2024 · 3 comments
Closed

Merge cells & Set autofilter #69

AndreeaMb opened this issue Jul 23, 2024 · 3 comments

Comments

@AndreeaMb
Copy link

AndreeaMb commented Jul 23, 2024

When I try to generate an excel file, and I use mergeCells() and setAutofilter() togheter, there is a conflict in the file.

This is my code(I try to merge some cells in the first row, and to add the autofilters for the second row):

....
$sheet->setAutofilter(2);

if($this->current_tab == 0) {
    $sheet->mergeCells("A1:E1");
}
....

The excel file is generated without errors, but when I try to open the file, I can not and I receive this alert:

Alert
We found a problem with some content in ’xxxxx.xlsx’. Do you want us to try to recover as much as we can? If you trust the source of this workbook, click Yes.

Is there a way to use these methods togheter?

@aVadim483
Copy link
Owner

Well, I will look into this problem

@aVadim483
Copy link
Owner

fixed in version 5.6.1

@AndreeaMb
Copy link
Author

Thank you!

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

No branches or pull requests

2 participants