MatteoBrentegani / excellibrary

Automatically exported from code.google.com/p/excellibrary
0 stars 0 forks source link

Corrupted data #160

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 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