The file is converted as follows:
var doc = new Aspose.Cells.Workbook(inputStream); doc.Worksheets.ActiveSheetIndex = 0; doc.Worksheets.AutoFitRows(true); doc.Save(outputStream, Aspose.Cells.SaveFormat.Xlsx);
inputStream and outputStream are instances of System.IO.Stream. After saving an XLSX file I observe broken strings in xl/sharedStrings.xml. The input file Coding.zip (2.8 KB) is probably created in some old MSOffice.
Important note. While it’s still possible to save in Office 5.0/95 (BIFF5) format in the latest MSOffice suite the issue is not reproducible in this case. I.e. if the input file is re-saved in MS Office 2019 in BIFF5 format then the above code correctly converts the file.
Is there is something wrong with the code above or is it an Aspose issue? BTW, I used Aspose Cells 20.2.