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 Sep 08, 2015 5:08 pm

Just tried to open and save some of my XLSX-files using Spire.XLS package v. 7.8.26. Code example is:
Code: Select all
            var wbk = new Spire.Xls.Workbook();
            try
            {
                wbk.LoadFromFile(InputFileName);
                wbk.CalculateAllValue();
                wbk.CalculationMode = Spire.Xls.ExcelCalculationMode.Manual;
                wbk.SaveToFile("SPIRE."+OutFileName);
                MessageBox.Show("Well done");
            }
            catch (Exception e)
            {
                MessageBox.Show("ERROR: " + e.ToString());
            }


Got the exception:
Unexpected token.Unexpected token type: tInteger, string value: at position 34. Formula: COUNTIFS(Enterprises!$A$6:$A$3098,2,Enterprises!$H$6:$H$3098,BI$4,Enterprises!$B$6:$B$3098,$B12,Enterprises!$G$6:$G$3098,$C12)+SUMIFS(Enterprises!$M$6:$M$3098,Enterprises!$A$6:$A$3098,4,Enterprises!$H$6:$H$3098,BI$4,Enterprises!$B$6:$B$3098,$B12,Enterprises!$G$6:$G$3098,$C12)+SUMIFS(Enterprises!$M$6:$M$3098,Enterprises!$A$6:$A$3098,5,Enterprises!$H$6:$H$3098,BI$4,Enterprises!$B$6:$B$3098,$B12), Position: 34


Confused by commas instead of semicolons in formula... Input xlsx-file is OK, because it was just saved by MS Excel 2010.

Can provide test xlsx-file by request.

Thank you.

RomanLoubet
 
Posts: 4
Joined: Tue Sep 08, 2015 4:57 pm

Wed Sep 09, 2015 2:22 am

Hello,

Thanks for your inquiry.
Please offer us your sample excel file.
It would be helpful to replicate the issue and work out the solution for you ASAP.
If the information is confidential, you can send it to us ( Support@e-iceblue.com ) via email.

Best Regards,
Sweety
E-iceblue support team
User avatar

sweety1
 
Posts: 539
Joined: Wed Mar 11, 2015 1:14 am

Wed Sep 09, 2015 8:02 am

sweety1 wrote:If the information is confidential, you can send it to us ( Support@e-iceblue.com ) via email.

Sent to you sample file.
Thank you.

RomanLoubet
 
Posts: 4
Joined: Tue Sep 08, 2015 4:57 pm

Wed Sep 09, 2015 8:47 am

Hello,

Thanks for your information.
I have noticed your issue. And I have posted the issue to our dev team. We will inform you when it is fixed. Sorry for the inconvenience.

Best Regards,
Sweety
E-iceblue support team
User avatar

sweety1
 
Posts: 539
Joined: Wed Mar 11, 2015 1:14 am

Fri Sep 25, 2015 2:26 pm

Hello,

is there any progress with my bug report?

We are considering possibilities of using different xlsx-handling libraries in order to select the optimal alternative to the Excel in our project and we can not rate your product yet.

Thank you.
Last edited by RomanLoubet on Tue Sep 29, 2015 2:22 pm, edited 1 time in total.

RomanLoubet
 
Posts: 4
Joined: Tue Sep 08, 2015 4:57 pm

Mon Sep 28, 2015 6:33 am

Hello,

Thanks for your reply.
As the issue you reported, we have created a research on it, but we need some more time to fix it. I can not provide you any reliable estimate regarding it's complexity. However, you will be surely informed once we fix it.

Best Regards,
Sweety
E-iceblue support team
User avatar

sweety1
 
Posts: 539
Joined: Wed Mar 11, 2015 1:14 am

Sun Nov 01, 2015 4:04 pm

Hello,

is there any progress with my bug report?

Thanks.

RomanLoubet
 
Posts: 4
Joined: Tue Sep 08, 2015 4:57 pm

Mon Nov 02, 2015 2:53 am

Hi,

Sorry for the delay update. Our dev team have done the investigation for your issue. It should be caused by the decimal separator of your local culture.
Please try the below solution:
Code: Select all
                CultureInfo cc = Thread.CurrentThread.CurrentCulture;
                Thread.CurrentThread.CurrentCulture = CultureInfo.InvariantCulture;
                wbk.SaveToFile("SPIRE."+OutFileName);   
                Thread.CurrentThread.CurrentCulture = cc;


Please give us some feedback after testing the solution on your side, so that we can know if it solves your issue.
Thanks.

Best Regards,
Amy
E-iceblue support team
User avatar

amy.zhao
 
Posts: 2774
Joined: Wed Jun 27, 2012 8:50 am

Tue Nov 03, 2015 3:31 am

Hello,

Has your issue been resolved?
Thanks for your feedback.

Best Regards,
Amy
E-iceblue support team
User avatar

amy.zhao
 
Posts: 2774
Joined: Wed Jun 27, 2012 8:50 am

Return to Spire.XLS