Hi!
We are using code similar to the following to convert .ods files to html:
var input = @"...";
var targetFolder = @"...";
AsposeLicenser.LoadLicense();
Directory.CreateDirectory(targetFolder);
var targetPath = Path.Combine(targetFolder, "preview.html");
var options = new HtmlSaveOptions
{
ExportImagesAsBase64 = true,
ExportSingleTab = true,
IsExportComments = false,
ExportHiddenWorksheet = false,
HiddenRowDisplayType = HtmlHiddenRowDisplayType.Remove,
HiddenColDisplayType = HtmlHiddenColDisplayType.Remove,
ExportGridLines = true,
CreateDirectory = true
};
using (var wb = new Workbook(input))
wb.Save(targetPath, options);
On consecutive runs on net6.0 this generates different outputs. E.g. when using the file from the archive attached and comparing the sheet001.htm file generated by two consecutive runs the diff looks like the following:
diff-snip.PNG (59.4 KB)
sample.zip (6.4 KB)
Even though visually the rendered html documents look the same, these differences in the output prevent us from doing integration tests where we expect certain output content.
Tested with Aspose.Cells 22.9.0 and 22.11.0. Note that when run from net47, the output is stable. We only observed this on net6.0. Also note that if you run this code twice on the same process (e.g. by putting it in a loop) the output will be the same, as far as I can tell only running it again in a separate process will result in different outputs.
We don’t see any reason for the output to be nondeterministic and would appreciate this to be fixed for testability.
Thanks,
Arnold