3
Vote

File contains corrupted data

description

I just downloaded the most recent version of the binary. We have a costing spreadsheet that we use to build proposals. Unfortunately I cannot attach the file. It was created in Excel 2000. I opened it up in 2007 and saved as a 2007 xlsx file. When opening it, I get the error "File contains corrupted data". I can open the xlsx file in Excel 2007 fine with no issues. I think the problem is that certain areas of some of the sheets have restrictions by Excel password protection. I took the same file from Excel 2000, removed protection, saved to XML spreadsheet format and then to Excel 2007 format and it opened as it should in my code. Am I right to assume this error is a password protection issue? Most of the cells are writable, the formulas are what are protected.

file attachments

comments

gregchak wrote Oct 3, 2007 at 3:21 PM

I'd like to add, I wasn't sure if this was an issue or not but thought someone should be made aware if they weren't already.

wrote Jul 8, 2008 at 8:47 AM

AndreZA wrote Jul 8, 2008 at 8:54 AM

no hotfix/workaround on this one? I have the same problem with a protected excel 2003 file that was converted to xlsm.

darkroastjava wrote Apr 19, 2010 at 1:23 PM

I have the same issue but not with ExcelPackage but with SpreadsheetDocument.Open(fileName, true), so this exception probably stems from the packaging api and is only propagated back by ExcelPackage...

Me too, I have a protected workbook with protected sheets. Opening the file as a zip reveals that the contents are encrypted.

wrote Nov 5, 2010 at 3:27 PM

wrote Nov 11, 2010 at 2:17 PM

wrote Feb 14, 2011 at 12:54 PM

camluc wrote Oct 18, 2011 at 6:21 PM

We also have an exception with SpreadsheetDocument.Open(fileName, true). Our temporary solution is to open the file in Excel, save it in the newest format. This way, we can continue coding. No permanent solution yet.

wrote Feb 22, 2013 at 12:31 AM

wrote May 21, 2014 at 11:38 AM

radhanandan wrote May 21, 2014 at 11:38 AM

I also having same problem, "File contains corrupted data".
When I am trying to create a new excel sheet using existing sheet.

could some body check the issue with this attached file?