Spire.XLS for .NET is a professional Excel .NET library that can be used to any type of .NET( C#, VB.NET, ASP.NET, .NET Core) application and Java (J2SE and J2EE) application.

Mon Jul 01, 2013 8:52 am

Hello,

The XLSX file can be only opened and edited by Microsoft Excel 2007 and above, so we have to set the version parameter in LoadFromStream(Stream stream, ExcelVersion version) method. For the XLSX file, our Spire.Xls component can support to load and edit Version2007 and Version2010, I check your excel file and it is an Excel2007 file, you could load your excel file by LoadFromStream(Stream stream,ExcelVersion.Version2007) or LoadFromStream(Stream stream,ExcelVersion.Version2010).

If there are any questions, welcome to get it back to us.

Sincerely,
Gary
E-iceblue support team
User avatar

Gary.zhang
 
Posts: 1380
Joined: Thu Apr 04, 2013 1:30 am

Return to Spire.XLS