This project has moved and is read-only. For the latest updates, please go here.

Opening XLSX file that is corrupt. Is there a recovery like Excel Interop option in ClosedXML?

Jan 24, 2017 at 4:52 PM
I have where I'm opening an XLSX excel file and it's corrupt. In Excel Interop there is an option to recover the corrupt file but was curious if ClosedXML has an option of recovering a XLSX excel file when attempting to load it in. I'm using the standard C# loading of the excel file:

XLWorkbook workbook = new XLWorkbook(filename)

The error I receive is: "Input string was not in a correct format" at the above statement.

If this has already been logged in the discussion, my apologies.

Thanks for your time!!