Attached is a java program that demonstrates the Workbook.copy(src) followed by a Workbook.save(…) generates an invalid file.
Please download AsposeCopyIssue.7z from
The program generates two files in the temp folder. One prefixed with ‘original’ the other prefixed with ‘copy’. Attempt opening the files with excel. Notice that the one prefixed with ‘original’ opens without an error. When opening the file prefixed with ‘copy’ Excel will report the file as being corrupted.