darknessomi / excellibrary

Excel fileformat library.
21 stars 8 forks source link

Corrupted data #160

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?

We are exporting file like this:

 [HttpPost]
        public ActionResult ExportFile(string EntryFile)
        {
            var list = JsonConvert.DeserializeObject<Entry>(EntryFile);

            return new FileContentResult(Export(list.CompositionEntry),
                    "application/vnd.ms-excel") { FileDownloadName = "fix_list.xls" };
        }

Everything seem to work, but Excel reports the problem: 
Damage to the file was so extensive that repairs were not possible. Excel 
attempted to recover your formulas and values, but some data may have been lost 
or corrupted.
When I click Ok, data is exported correctly, but we still don`t want error to 
be shown. Any ideas??? 

Original issue reported on code.google.com by ariza...@gmail.com on 30 Jan 2014 at 3:15