We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date
Syncfusion site will be temporarily unavailable for scheduled maintenance on December 14, 2024, from 10:30 PM ET to 11:30 PM ET.
close icon

XlsIO not compatible with Win8

Hi Syncfusion,

I'm using XlsIO to read an excel file.

 Syncfusion.XlsIO.ExcelEngine excelEngine = new Syncfusion.XlsIO.ExcelEngine();
 Syncfusion.XlsIO.IApplication application = excelEngine.Excel;
 Syncfusion.XlsIO.IWorkbook workbook = application.Workbooks.OpenReadOnly(toDir + fileName);
 Syncfusion.XlsIO.IWorksheet sheet = workbook.Worksheets["Custody Positions"];

When I run the program on Win7, it works perfect. But I got the following error when I run on an windows 8 machine.

Description: The process was terminated due to an unhandled exception.
Exception Info: System.OverflowException
Stack:
   at Syncfusion.CompoundFile.XlsIO.Native.PropVariant.FreeName()
   at Syncfusion.CompoundFile.XlsIO.Native.PropVariant.Finalize()

Is it a known compatibility issue? I'm using product version 11.4450.0.26

Thanks.

Jianwei

6 Replies

IN Ishwarya Narayanan Syncfusion Team March 19, 2015 06:46 AM UTC

Hi  Wang,

 

Thank you for using Syncfusion products.

 

The reported issue has been fixed in our 12.2 and later versions. But your working version is mentioned as 11.4. To avail this functionality along with other enhancements, we strongly recommend you to upgrade to the latest version.

 

Please let us know if you need any clarification.

 

Regards,

Ishwarya N



IL Ilgiz October 9, 2015 06:45 AM UTC

Hello,

Can you describe what could be the cause of that exception? as i'm having this exception on Win Server 2008 R2, and upgrading Syncfusion will be hard on my application


MM Mathu Mohan Vijayakumar Syncfusion Team October 12, 2015 10:02 AM UTC

Hi Ilgiz,

The improper conversion of IntPtr to Int32 inside the library causes the overflow exception in your application.


Thanks,
Mathu Mohan V A



IL Ilgiz October 13, 2015 05:29 AM UTC

Thank you. So i can't really find something in used excel document and change it to avoid this exception, can i?


MM Mathu Mohan Vijayakumar Syncfusion Team October 13, 2015 08:47 AM UTC

Hi Ilgiz,

Disabling the UseNativeStorage property resolves this issue. This property indicates whether we should use native storage (standard windows COM object) or .NET implementation to open Excel 97-2003 files.

Following code example illustrates this.

// New instance of XlsIO is created[Equivalent to launching MS Excel with no workbooks open].

// Instantiate the spreadsheet creation engine.

ExcelEngine excelEngine = new ExcelEngine();

// Instantiate the Excel application object.

IApplication application = excelEngine.Excel;

// Disabling UseNativeStorage property.

Application.UseNativeStorage false ;



Thanks,
Mathu Mohan V A



AV Abirami Varadharajan Syncfusion Team February 28, 2019 03:08 PM UTC

Hi Richard, 
 
The reported issue has been fixed in our latest versions.It is also recommended to upgrade to our latest version 16.4.0.52 which has more bug fixes, enhancements and features. Latest version can be downloaded from following link. 
 
 
Regards, 
Abirami. 


Loader.
Up arrow icon