XlsIO not compatible with Win8
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
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
Hi Ilgiz,
The improper conversion of IntPtr to Int32 inside the library causes the overflow exception in your application.
Thanks,
Mathu Mohan V A
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
- 7 Replies
- 5 Participants
-
WJ Wang Jianwei
- Mar 18, 2015 09:22 AM UTC
- Feb 28, 2019 03:08 PM UTC