I've got a library that can export the contents of a VCL grid to XLS format. (Not sure which version of XLS format; that's part of the problem.) It usually works just fine, but in some cases, when I open an XLS that was exported by this library in Excel 2007, it says "Excel found unreadable content in '[myfile.xls]'. Do you want to recover the contents of this workbook?"
It's able to recover it correctly, so whatever the problem is, it must not be that severe, but I'm having a heck of a time figuring out what the problem is. I can't do anything simple like run Excel under the debugger because it's proprietary software. I've tried saving the corrected version as various flavors of XLS and diffing the two files, but I don't ever find anything that looks even remotely like the file format of the original. When the recovery is finished, it gives me a link to an XML file that states that a document was recovered, without describing anything whatsoever about the errors that were found or fixed.
Is there any way I can get some actual detailed information about what Excel was expecting to see and what it saw instead?