Excel-file become corrupted after saving by Aspose

Hi!

I have a file, which become corrupted, when I try to open its copy after saving by Aspose.
But the copy made without Aspose opens well.
The problem file: problem_file.zip (21.7 KB)

You can easilly test it with this code:

@Test
public void saveFileTest() throws Exception {

Path fileLocation = Paths.get("problem_file.xlsx");
byte[] bytes = Files.readAllBytes(fileLocation);

try (FileOutputStream simpleStream = new FileOutputStream("no_aspose_file.xlsx")) {
    simpleStream.write(bytes);
}

Workbook workbook = new Workbook(new ByteArrayInputStream(bytes));
workbook.save(“from_aspose_file.xlsx”);

}

Can you say what’s wrong with that file?
Or it’s bug in Aspoe?

@nikiton,

Thanks for the template file and sample code.

After an initial test, I am able to observe the issue as you mentioned by using your sample code with your template file. I found that Ms Excel file becomes corrupted after saving by Aspose.Cells. I have logged a ticket with an id “CELLSJAVA-42879” for your issue. We will look into it soon.

Once we have an update on it, we will let you know.

@nikiton,

This is to inform you that we have fixed your issue (logged earlier as “CELLSJAVA-42879”) now. We will soon provide you the fixed version after performing QA and incorporating other enhancements and fixes.

Thanks a lot, this is a good news!

@nikiton,

You are welcome.

The issues you have found earlier (filed as CELLSJAVA-42879) have been fixed in Aspose.Cells for Java 19.4. This message was posted using BugNotificationTool from Downloads module by Amjad_Sahi