How to export large data to Excel

Posted by mavera on Stack Overflow See other posts from Stack Overflow or by mavera
Published on 2010-06-14T18:36:50Z Indexed on 2010/06/14 18:42 UTC
Read the original article Hit count: 240

I have a criteria page in my asp.net application. When user clicks report button, firstly in a new page results are binded to a datagrid, then this page is exported to excel file with changing content type method.

That normally works, but when large amount of data comes, system.outofmemoryexception is thrown.

Does anyone know a way to fix this problem, or another usefull technic to do?

© Stack Overflow or respective owner

Related posts about ASP.NET

Related posts about excel