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

Error when open excel over ASP.NET

Apr 6, 2012 at 2:57 PM


I have generated an excel using EPPlus and when I open the file (over HttpResponseStream) I get the next messages.

Excel found unreadable content in "ReportName". Do you want to recover the content of this workbook? Yes/No

If I choose Yes I get the next message:

The File cannot be opened by using Microsoft Excel. Do you want to search the Microsoft Office Online Web site for a converter to open the file? [Yes/No/Cancel]

If I choose No the file is opened and I am notified that the file was repaired, and everything looks ok.

Does someone have experience using EPPlus on ASP.NET applications?


Apr 9, 2012 at 6:05 PM

I was getting the same error. It wasn't the file creation but transmitting it to the user... I'm still trying to work on a solution myself.

Apr 9, 2012 at 7:12 PM

I ended up emailing the file instead, it works for my purpose.