We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

Exception when load .xls file by new aspose cell version

Hi,
I tried to load file by Aspose Cell version: 20.6.5 and an exception is thrown, but it’s success in older version: 19.10.
My sample: sample.zip (50.6 KB).
My code:

  try
  {
        var inStream = new FileStream(inputXlsFile, FileMode.Open,FileAccess.Read, FileShare.ReadWrite);
        var opt = new LoadOptions
        {
            MemorySetting = MemorySetting.MemoryPreference
         };
         var workbook = new Workbook(inStream, opt);
  }
  catch(Exception e)
  {
     string err = e.Message;
  }

Please check and give me feedback.
Thank you.

@dunghnguyen,

Thanks for the template file and code segment.

Please notice, I am able to reproduce the issue as you mentioned by using your sample code with your template file. I found an exception “The max length of the font name is 31” when loading the XLS file format. I have logged a ticket with an id “CELLSNET-47483” for your issue. We will look into it soon.

Once we have an update on it, we will let you know.

@dunghnguyen,
This is to inform you that we have fixed your issue (logged earlier as “CELLSNET-47483”) now. We will soon provide you the fixed version after performing QA and incorporating other enhancements and fixes.

@ahsaniqbalsidiqui,
Thanks for your update.

@dunghnguyen,

Please try our latest version/fix: Aspose.Cells for .NET v20.7.1 (attached)

Your issue should be fixed in it.

Let us know your feedback.
Aspose.Cells20.7.1 For .Net2_AuthenticodeSigned.Zip (5.4 MB)
Aspose.Cells20.7.1 For .Net4.0.Zip (5.4 MB)

The issues you have found earlier (filed as CELLSNET-47483) have been fixed in Aspose.Cells for .NET v20.8. This message was posted using Bugs notification tool by Amjad_Sahi