EPPlus, handling big ExcelWorksheet

若如初见. 提交于 2019-12-02 01:03:51
Ernie S

Unfortunately, I dont have the greatest news. Take a look at these:

EPPlus Large Dataset Issue with Out of Memory Exception

Load large amount of excel data with EPPlus

Short answer is EPPlus will run out of RAM as you discovered already. Even with the latest version of 4 which the revamped the storage process to shrink the sizes of the cell object I am still hitting the limit.

In the first link I talk about writing code to do XML manipulation but haven't had the time to try it. If you get anywhere with it I would love to see it :).

But if you want to export the sheets in batches of 50K you should have to do it in separate files and then merge them with something like VBA outside of EPPlus as I mentioned in one of the treads. I show an example of something similar here where the VBA fires automatically when the sheet is loaded:

EPPlus Pivot Table - Copy Values to New Sheet

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!