Exception when opening a file with drawing in it

I get the following exception when trying to open the attached excel file that only has a drawing in it:
Unable to cast object of type ‘Aspose.Cells.Drawing.CellsDrawing’ to type ‘Aspose.Cells.Drawing.Picture’.

// Load from file
var workbook = new Workbook("Test.xlsx");

The same exception occurs when using 18.12.0 and 18.12.7.
Test.zip (23.7 KB)


Thanks for the template file and sample code segment.

After an initial test, I am able to reproduce the issue as you mentioned by opening your template file. I found an exception “Unable to cast object of type ‘Aspose.Cells.Drawing.CellsDrawing’ to type ‘Aspose.Cells.Drawing.Picture’” when loading the XLSX file:
Sample code:

// Load from file
var workbook = new Workbook("e:\\test2\\Test.xlsx");

I have logged a ticket with an id “CELLSNET-46636” for your issue. We will look into it soon.

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


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


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

Your issue should be fixed in it.

Let us know your feedback.
Aspose.Cells19.2.7 For .Net2_AuthenticodeSigned.Zip (4.8 MB)
Aspose.Cells19.2.7 For .Net4.0.Zip (4.8 MB)

The issues you have found earlier (filed as CELLSNET-46636) have been fixed in Aspose.Cells for .NET v19.3. This message was posted using BugNotificationTool from Downloads module by Amjad_Sahi