Quantcast
Channel: ClosedXML - The easy way to OpenXML
Viewing all articles
Browse latest Browse all 1877

Commented Unassigned: Reading a large excel file, part by part using range still throws MemoryException [9100]

$
0
0
Hi,

I have an excel file with 1 lakh rows and 250 columns. I want to read 25k rows at a time using range.
But, the XLWorkbook throws an OutOfMemoryException in the line where it opens the workbook, even before it tries to read the range.

var workBook= new XLWorkbook("Book1Lakh.xlsx");

Is there any workaround to solve my problem, preferably could you provide me with a sample code?
Comments: ** Comment from web user: ThiagoGrandesso **

I´m facing this problem too.
When I use this line of code to open the excel file it throws an exception.
Have you found the problem´s cause? Please, let us know if you solve this issue.

XLWorkbook wb = new XLWorkbook(fileName);

Could you help please?


Viewing all articles
Browse latest Browse all 1877

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>