Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
60
Cleaning resources while exporting to excel
posted

While exporting a huge data to excel it consumes more than 1GB memory (RAM) on my machine. And finally I gets "Out of memory exception".

Is there any way by which we can release some memory while exporting to excel?

Will ExportCache.Clear() solve the problem? If yes, how can we call it because ExportCache is a private property in DataPresenterExcelExporter class?

I am already done with setting ExportOptions. Is there any other way to get it done?

Any help is very much appreciated.