Misaligned image in HTML export

Hello,

I am experimenting with exporting HTML from spreadsheets. It works very nicely for this enclosed sample (good.xlsx) which contains a single sheet. However, when additional sheets are added (issue.xlsx) the chart at the bottom of the first sheet became overlapped with other elements. I wonder whether this is a bug?

The code I use for export:

excelDocument.Save(outputFolder + "/index.html",Aspose.Cells.SaveFormat.Html);



The Aspose.Cells version is 8.6.3

I have also used version 8.9 but the output in this case is missing the chart.

Thank you very much.

Kind Regards,
Bach Tran

Hi Bach,


Thank you for sharing the samples.

I have checked your provided spreadsheets and have noticed 2 problems with the sample issue.xlsx. Firstly, Excel does not load this sample without repair, and removes some contents upon confirmation. Secondly, the chart in first worksheet is overlapping the contents when viewed in Excel (after repair) therefore when you convert the spreadsheet to HTML with Aspose.Cells APIs, the chart overlaps the contents in HTML format as well. Please check attached snapshots for reference.

Note: I have used the latest version of Aspose.Cells for .NET 8.9.0.4 (attached) for my testing.

Hi Babar,

Thank you very much for your response.

You are right about the file issue.xlsx.

I will try again with your attached Aspose.Cells. I think the latest version I got from nuget is 8.9.0.0.

Kind Regards,
Bach Tran

Hi Bach,


Please note, the provided version (8.9.0.4) is a maintenance release that we only share in forums, whereas as the major releases are available in Aspose download section as well as on NuGet. Moreover, you can use the maintenance releases in your production environment as they contain all fixes and enhancements from previous releases.