While updating from version 20.1 to 20.7 for Aspose.Cells and Aspose.Words encountered an error.
We’re creating the Workbook using Aspose.Cells and later checking with Aspose.Words whenever we will be able to open it. We’re calling the following code:
originalInputStream.Position = 0;
var wordsFormat = Aspose.Words.FileFormatUtil.DetectFileFormat(originalInputStream);
The error is that Aspose.Words 20.1 and 20.7 are able to do the following call if Workbook was created using Aspose.Cells of version 20.1, while if we create the workbook using Aspose.Cells 20.7 we’re getting:
The document appears to be corrupted and cannot be loaded.
----> \u0008 : ZipEntry::ReadDirEntry(): Bad signature (0x6F707341) at position 0x00001A1F
at Aspose.Words.FileFormatUtil.DetectFileFormat(Stream stream)