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

Free Support Forum - aspose.com

FormatException thrown when converting certain strict xlsx files to html


We are getting FormatExceptions while trying to convert the xlsx files from the archive below to html, using Aspose.Cells for .Net 20.7.0 and the following code:


var options = new HtmlSaveOptions
    ExportImagesAsBase64 = true,
    ExportSingleTab = true,
    ExportHiddenWorksheet = false,
    ExportGridLines = true

using (var wb = new Workbook(file))
    wb.Save(file + "_output.html", options);

formatexception.zip (31.8 KB)


We were able to observe the issue but we need to look into it more. We have logged the issue in our database for investigation and for a fix. Once, we will have some news for you, we will update you in this topic.

This issue has been logged as

CELLSNET-47491 - FormatException on converting certain strict xlsx files to html

This is to inform you that we have fixed your issue (logged earlier as “CELLSNET-47491”) 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 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)

Seems to work now. Please include the fixes in your next release as well (on nuget.org).


Sure, it will be done in the next release and thank you for the feedback.

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