Hello.
I am using Aspose.Cells to convert Excel files to HTML.
I have a couple of Excel files, the HTML for them looks broken.
examples.zip (1.5 MB)
Converted views:
image.png (8.3 KB)
image.png (4.0 KB)
You may try to set PresentationPreference option mode on to get better display with elegant quality regarding formattings. I tried the following sample code and it works fine:
e.g.
Sample code:
Aspose.Cells.Workbook workbook = new Aspose.Cells.Workbook("e:\\test2\\example_1.xls");
HtmlSaveOptions options = new HtmlSaveOptions();
options.PresentationPreference = true;
options.ExportHiddenWorksheet = false;
options.ExportPrintAreaOnly = true;
workbook.Save("e:\\test2\\out1.html", options);
This code helps for the first file but does not help for the second one.
Yes, we noticed the issue. I am able to observe the issue even using PresentationPreference option. I found some multiline text in some cells (for “example_2.xlsx” file) is not rendered properly in Excel to HTML conversion. I have logged a ticket with an id “CELLSNET-49452” 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 now. We will soon provide you the fixed version after performing QA and incorporating other enhancements and fixes.
The issue is fixed in the fix v21.10.2.
Aspose.Cells21.10.2 For .Net2_AuthenticodeSigned.Zip (5.6 MB)
Aspose.Cells21.10.2 For .Net4.0.Zip (5.6 MB)
Aspose.Cells21.10.2 For .NetStandard20.Zip (5.6 MB)
The issues you have found earlier (filed as CELLSNET-49452) have been fixed in this update. This message was posted using Bugs notification tool by simon.zhao