This project is read-only.

"File contains corrupted data." when trying to open xltx

Mar 11, 2011 at 7:10 AM


I am trying to open an excel template in order to fill it with data. The code I use is the following:


using (var package = SpreadsheetDocumentWrapper.Open(@"Resources\FNRSTemplate.xltx"))

 It doesnt work and I get the exeption "File contains corrupted data."

The file opens without any problems in Excel 2007.

Please help me out..