Issues with XSLX to HTML conversion

Hi,

a customer reported an issue when converting a xlsx workbook to HTML, the output looks different from the original input.

Code to reproduce.

var workbook = new Workbook(@"S:\tmp\in.xlsx");
workbook.Save(@"S:\tmp\out.pdf");

Sample files:
sample.zip (11.8 KB)

Thanks for your help,
Daniel

@Serraniel
By using sample files and code for testing, we are able to reproduce the issue. Found Skewed cells rendering error when converting file to HTML.

We have opened the following new ticket(s) in our internal issue tracking system and will deliver their fixes according to the terms mentioned in Free Support Policies.

Issue ID(s): CELLSNET-55287

You can obtain Paid Support Services if you need support on a priority basis, along with the direct access to our Paid Support management team.

@Serraniel

To achieve skewed borders in HTML, we need to change the style “border-collapse: collapse” of the table to “border-collapse: separate”, so that the borders displayed in browser will appear thicker. If you can accept this effect, we will do it this way.
We have made an example html for your reference:
skew-example.zip (3.1 KB)

@Serraniel ,
We are pleased to inform you that your issue has been resolved. The fix will be included in an upcoming release (Aspose.Cells v24.5) that we plan to release this week. You will be notified when the next version is released.

Please use the following code when the next version is released:

 var workbook = new Workbook(sourceFile);
 HtmlSaveOptions saveOptions = new HtmlSaveOptions(SaveFormat.Html);
 saveOptions.IsBorderCollapsed =false;
 workbook.Save(destFile, saveOptions);

The issues you have found earlier (filed as CELLSNET-55287) have been fixed in this update. This message was posted using Bugs notification tool by johnson.shi