I tried the code segment with your file and it returns nothing. If you still find the issue with v18.7.4, kindly do provide output file (by Aspose.Cells APIs) and your expected file (that you may create/update manually in MS Excel), we will check it soon.
I am able to reproduce the issue as you mentioned. Using the following sample code with your template file gives nothing, no filtered rows are displayed whereas it should return top 5 rows:
e.g Sample code:
This is to inform you that we have fixed your issue (logged earlier as “CELLSNET-46267”) now. We will soon provide you the fixed version after performing QA and incorporating other enhancements and fixes.
We were able to observe the issue but we need to look into it more. We have logged the issue in our database for investigation and for a fix. Once, we will have some news for you, we will update you in this topic.
This issue has been logged as
CELLSNET-46278 - AutoFilter.Refresh does not update custom filters
I have tried the following sample code and found it working fine. Please try the following sample code using latest version Aspose.Cells for .NET 18.7.6.
The issues you have found earlier (filed as CELLSNET-46267) have been fixed in this update. This message was posted using BugNotificationTool from Downloads module by Amjad_Sahi
Regarding CELLSNET-46278, solution was already provided in the previous post, where it was suggested that you may remove quotes from the value 80. Hence the statement shall be as
I have checked this scenario using Aspose.Cells for .NET 18.8 and Excel 2016 both separately by setting the same custom filter. It is observed that both do not return any row. Could you please give it a try using the latest version and share the feedback if any difference is observed in the behavior of Apose.Cells and Excel 2016? AsposeOutput.png (51.5 KB) Excel2016Output.png (61.0 KB)