Spire.XLS is a professional Excel API that enables developers to create, manage, manipulate, convert and print Excel worksheets. Get free and professional technical support for Spire.XLS for .NET, Java, Android, C++, Python.

Tue Jul 07, 2020 8:25 pm

Hi, I'm experiencing an exception (System.InvalidCastException: Unable to cast object of type 'Spire.Xls.Core.Spreadsheet.AutoFilter.FilterColumn' to type 'Spire.Xls.Core.Spreadsheet.XlsAutoFilter'.) when working with an auto filtered XLS. Note the same issue does not occur with an XLSX version of the same spreadsheet. The issue also doesn't occur if the autofilter is removed.

The code to recreate this issue is below:

Code: Select all
        public void XLSAutoFiltered()
        {
            try
            {
                string strFileName = @".\Vehicle Filter.xls";
                string strTargetFileName = @".\Vehicle Filter.xls";
                Spire.Xls.Workbook workBook = new Workbook();

                workBook.LoadFromFile(strFileName);

                workBook.SaveToFile(strTargetFileName);

                workBook.Dispose();
            }
            catch (Exception e)
            {
                Console.WriteLine(e);
            }
        }

wraydc
 
Posts: 130
Joined: Wed Apr 11, 2018 5:14 am

Tue Jul 07, 2020 8:49 pm

XLS attachment for the source code.
Attachments
Vehicle Filter.xls.zip
(7.31 KiB) Downloaded 172 times

wraydc
 
Posts: 130
Joined: Wed Apr 11, 2018 5:14 am

Wed Jul 08, 2020 3:49 am

Hello,

Thanks for your post.
I have reproduced your issue and logged it in our bug tracking system with the ticket SPIREXLS-2507. Our Dev team will further investigate and fix it. If it is resolved, we will let you know immediately.
Sorry for the inconvenience caused.

Sincerely,
Rachel
E-iceblue support team
User avatar

rachel.lei
 
Posts: 1571
Joined: Tue Jul 09, 2019 2:22 am

Thu Jul 16, 2020 7:18 am

Just a quick check-in on this one - Any progress or ETA that I can work to?

Many thanks in advance,

Darren

wraydc
 
Posts: 130
Joined: Wed Apr 11, 2018 5:14 am

Thu Jul 16, 2020 8:23 am

Hi Darren,

Thanks for your following up.
I got news from our Dev team that this issue has been resolved and now it is in the testing phase. If it passes the test, we will compile a hotfix you. Thanks for your patience.

Sincerely,
Rachel
E-iceblue support team
User avatar

rachel.lei
 
Posts: 1571
Joined: Tue Jul 09, 2019 2:22 am

Tue Jul 21, 2020 4:36 am

A quick check on this one - Is this also fixed in temporary hotfix 5.7.5?

Thanks in advance,

Darren

wraydc
 
Posts: 130
Joined: Wed Apr 11, 2018 5:14 am

Tue Jul 21, 2020 7:08 am

Hi Darren,

Thanks for your post.
Unfortunately this issue has not been fixed in Spire.Office v5.7.5. Our Test team is testing the cases of Spire.XLS. The fix for your issue will be included in the next version.
Once the new version is available, we will inform you ASAP.

Sincerely,
Rachel
E-iceblue support team
User avatar

rachel.lei
 
Posts: 1571
Joined: Tue Jul 09, 2019 2:22 am

Tue Jul 21, 2020 9:33 am

OK, thanks for the update.

wraydc
 
Posts: 130
Joined: Wed Apr 11, 2018 5:14 am

Fri Jul 24, 2020 6:25 am

Any further update on this ticket? I was hoping to have a solution before we all head out for the weekend.

Thanks in advance,

Darren

wraydc
 
Posts: 130
Joined: Wed Apr 11, 2018 5:14 am

Fri Jul 24, 2020 8:01 am

Hi Darren,

Thanks for your following up.
I just got news from our Test team that they found some issues when testing the hotfix. Our Dev team are working on these issues now, sorry we are unable to provide you with a new version at this moment.
Once the new version is ready, we will notify you immediately. Thanks for your understanding.

Sincerely,
Rachel
E-iceblue support team
User avatar

rachel.lei
 
Posts: 1571
Joined: Tue Jul 09, 2019 2:22 am

Fri Jul 24, 2020 8:50 am

Rachel,

Thanks for the update, I'll follow-up with you next week. Have a good weekend :)

Darren

wraydc
 
Posts: 130
Joined: Wed Apr 11, 2018 5:14 am

Mon Jul 27, 2020 1:06 am

Hello,

Ok, once the remaining issues are resolved, we will compile a hotfix for you. Thanks for your patient waiting.

Sincerely,
Rachel
E-iceblue support team
User avatar

rachel.lei
 
Posts: 1571
Joined: Tue Jul 09, 2019 2:22 am

Tue Jul 28, 2020 6:18 am

Just a quick check-in - Any update on this item?

Thanks in advance, Darren

wraydc
 
Posts: 130
Joined: Wed Apr 11, 2018 5:14 am

Tue Jul 28, 2020 8:39 am

Hi Darren,

Sorry that the new version is not available now. Our Dev team is still fixing the remaining issues. I have urged them. Sorry for the delay and inconvenience caused.

Sincerely,
Rachel
E-iceblue support team
User avatar

rachel.lei
 
Posts: 1571
Joined: Tue Jul 09, 2019 2:22 am

Fri Jul 31, 2020 8:32 am

A quick check-in before the weekend. Any news on this one?

Darren



rachel.lei wrote:Hi Darren,

Sorry that the new version is not available now. Our Dev team is still fixing the remaining issues. I have urged them. Sorry for the delay and inconvenience caused.

Sincerely,
Rachel
E-iceblue support team

wraydc
 
Posts: 130
Joined: Wed Apr 11, 2018 5:14 am

Return to Spire.XLS