-
Hi, guys! Please help me. I have an xlsx document with filter in one column. Without filter i have about 100 records. With filter it shows 2 records. I load document using phpspreadsheet and want to remove any filters and show all 100 records. How to do it? I try: |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
Is this AutoFilter in the datasheet; or is it in a Table in the DataSheet? Does a call to |
Beta Was this translation helpful? Give feedback.
-
Ok! So it's just a standard AutoFilter You'll need to reset the filter rules for each column before you call $autoFilter = $dataSheet->getAutoFilter();
foreach($autoFilter->getColumns() as $column) {
$autoFilter->clearColumn($column->getColumnIndex());
}
$autoFilter->showHideRows(); Then, if you still want to remove the AutoFilter, you can do so $dataSheet->removeAutoFilter(); |
Beta Was this translation helpful? Give feedback.
Ok! So it's just a standard AutoFilter
You'll need to reset the filter rules for each column before you call
showHideRows()
Then, if you still want to remove the AutoFilter, you can do so