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

Free Support Forum - aspose.com

Cells Unknown image format

When i try to open the attached xlsx file i get the following error : Unknown image format

here is the implementation:

private readonly Workbook _xls = new Workbook(filePath, lo);

Stack Trace:

at System.Drawing.Image.FromStream(Stream stream, Boolean useEmbeddedColorManagement, Boolean validateImageData)
at System.Drawing.Image.FromStream(Stream stream)
at . . (Byte[] , Int32 , Int32 )
at . …ctor(Byte[] , Int32 )
at . .Add(Byte[] )

Inner exception: -2146232832
{“Parameter is not valid.”}

Hi Angel,

Thanks for your posting and using Aspose.Cells.

We were able to observe this issue after executing your sample code with the latest version: Aspose.Cells for .NET 8.3.1.

We have logged this issue in our database for investigation. We will look into it and fix this issue. Once, the issue is resolved or we have some other update for you, we will let you know asap.

This issue has been logged as

  • CELLSNET-43242 - Unknown image format - error on opening the workbook


string filePath = @“F:\Shak-Data-RW\Downloads\2.xlsx”;

Workbook workbook = new Workbook(filePath);

Hi Angel,

Thank you for your patience with us.

Please try the latest version of Aspose.Cells for .NET against the problem as discussed in this thread, and let us know of your feedback.

The issues you have found earlier (filed as CELLSNET-43242) have been fixed in this update.

This message was posted using Notification2Forum from Downloads module by Aspose Notifier.