I have a very simple 2007 excel file, after I open it and save with cells.dll, then try to open with MS office 2007, the file seems corrupted and asked me to repair. There is the repair message generated by MS 2007:
<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
- <recoveryLog xmlns="http://schemas.openxmlformats.org/spreadsheetml/2006/main">
<logFileName>error301240_01.xml</logFileName>
<summary>Errors were detected in file 'F:\filestore.xlsx'</summary>
<info>Excel completed file level validation and repair. Some parts of this workbook may have been repaired or discarded.</info>
</additionalInfo>
</recoveryLog>
My cells.dll version is 4.7.1.8, runtime version = v1.0.3705
There is my test code in c#:
string docFile = "BookGood.xlsx";
System.IO.FileStream fstream = null;
Workbook workbook = new Workbook();
FileFormatType fileFormat = FileFormatType.Excel2007Xlsx;
fstream = new System.IO.FileStream(docFile, FileMode.Open);
workbook.Open(fstream, fileFormat);
workbook.Save(fstream, fileFormat);
fstream.Dispose();
workbook = null;
You can use your excel 2007 file or my uploaded one to verify.
Chang