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

Free Support Forum - aspose.com

Aspose updates not loading workbook


I tried all the versions from 21.9 onward. It seems there is an issue with loading excel workbooks.
This is the test code you can use to replicate the issue.

using XlInterface;

IWorkbook workbook = null;

    workbook = new Aspose.Workbook("C:/Users/User_Name/Downloads/TestBook.xlsx");
catch (Exception ex)
   Console.WriteLine("Could not load the current active workbook through Aspose.");

TestBook.zip (6.5 KB)

Thank you!


Thanks for the template file.

I tested your scenario/case using our latest version/fix: Aspose.Cells for .NET v22.3, it works absolutely fine. No exception occurred. Here is the simplest line of code that I am using with your file:
Sample code:

Aspose.Cells.Workbook workbook = new Aspose.Cells.Workbook("e:\\test2\\TestBook.xlsx");

I also noticed you are instantiating IWorkbook object in your code instead of defining/creating Aspose.Cells.Workbook object, so you should fix it accordingly.