Free Support Forum - aspose.com

Unknown image format:Unsupported image format

Hi,


I am trying to open an excel sheet (template) so I can populate it with some data using Aspose.Cells. The sheet is of .xlsm format. But for some reason each time I try to open using -

Dim wb As New Workbook
wb.Open(‘path to the template’)

I receive the error: Unknown image format:Unsupported image format.

I have pinpointed where this issue is happening, but still do not know why. I have attached the template I am trying to open which I gutted (void of any data) with only the graphs which I believe are causing the issue. Can someone take a look at these graphs and let me know what I can do with them to avoid this error happening.

Thanks

Hi,

Thanks for your posting and using Aspose.Cells for .NET.

We have tested your file with the following code and found that latest version: Aspose.Cells
for .NET v7.4.0.1
is working fine without any issue.

Please download the latest version, it should resolve your issue.

We have attached the output xlsm file generated by this code for your reference.

C#


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


Workbook workbook = new Workbook(filePath);

workbook.Save(filePath + “.out.xlsm”, SaveFormat.Xlsm);

Yep, that did the trick.


Thank you for your quick response!

Hi,

Thanks for your posting and using Aspose.Cells for .NET.

We are glad to know that the latest version has resolved your issue.

If you face any other issue, please feel free to let us know, we will be pleased to help you more.