Free Support Forum -

Diagram is not shown in html when sheet has no other content - Excel to HTML


We are converting xlsx to html using the following code and Aspose.Cells 20.9.0:

var options = new HtmlSaveOptions
    ExportImagesAsBase64 = true,
    ExportSingleTab = true,
    ExportGridLines = true
using (var wb = new Workbook("..."))
    wb.Save("...", options);

On converting the noOtherContent.xlsx file from the archive below, the diagram is not shown. If there was some other content on the sheet (added “test” into cell A1 in withOtherContent.xlsx), the diagram would be shown as expected (see images below).
noOtherContent.PNG (1.0 KB)
withOtherContent.PNG (10.9 KB)

This issue was not present in 20.8.0. (30.0 KB)



Please notice, we were able to reproduce the issue as you mentioned by using your sample code with your template file. We found diagram (smartart shape) is not shown in the html when sheet has no other contents in it. We have logged a ticket with an id “CELLSNET-47609” for your issue. We will look into it soon.

Once we have an update on it, we will let you know.