Aspose.Cells 將 html 轉成 ODS ,字的顏色不對

您好,
我使用官網提供的程式碼,將 html 轉存成 ODS ,結果 ODS 字的顏色與html不同,
// load the HTML file to be converted
var document = new Aspose.Cells.Workbook(“ocs.html”);
// save HTML as a ODS
document.Save(“ocs.ods”, Aspose.Cells.SaveFormat.ODS);

測試的html、產出的ODS及比較的png,都在zip附件之中,
ocs.zip (1.0 MB)

@rainmaker_ho,

感谢您提供示例文件和屏幕截图。

请注意,通过使用以下示例代码,我们能够重现您提到的问题(我什至尝试在加载HTML文件时设置自动调整行/列操作,以使数据正常显示)。我发现某些单元格中的某些单词颜色错误:
例如
样例代码:

//加载要转换的HTML文件
             HtmlLoadOptions opts = new HtmlLoadOptions(LoadFormat.Html);
            opts.AutoFitColsAndRows = true;
            var document = new Aspose.Cells.Workbook("e:\\test2\\ocs\\ocs.html", opts);

            //将HTML保存为ODS
            document.Save(“e\\ test2 \\out1.ods”,Aspose.Cells.SaveFormat.ODS);

对于您的问题,我已记录了一个ID为“ CELLSNET-47390”的票证。我们将尽快调查。

更新后,我们会通知您。

@rainmaker_ho,

我们很高兴地通知您,我们已解决您的问题。在执行质量检查并合并其他增强功能和修补程序之后,我们很快会为您提供固定版本。

1 Like

The issues you have found earlier (filed as CELLSNET-47390) have been fixed in Aspose.Cells for .NET v20.6. you may also get the version @ NuGet repos. here (NuGet Gallery | Aspose.Cells 20.6.0).This message was posted using Bugs notification tool by Amjad_Sahi

The issues you have found earlier (filed as CELLSNET-47390) have been fixed in Aspose.Cells for .NET v20.6. you may also get the version @ NuGet repos. here (NuGet Gallery | Aspose.Cells 20.6.0).This message was posted using Bugs notification tool by Amjad_Sahi