I have a data table for Oracle stored procedure. It is generating more than 1 million rows. While converting into .xls, the size is almost 36 mb and it is showing an "out-of-memory" exception.
I am using C# and Crystal Reports libraries.
Is there any better way to create a .xlsx file (with all the data and smaller size)?
Tuhin PaulPosted May 15, 2023, 5:09 PM
Few things you can do to create a .xlsx file with all the data and a smaller size:
Here are some additional tips for creating a smaller .xlsx file:
Amit MohantyPosted May 15, 2023, 12:02 PM
When dealing with large datasets, generating Excel files (.xlsx) can be memory-intensive and may lead to out-of-memory exceptions. To overcome this issue and create a smaller-sized .xlsx file, you can consider using a library like EPPlus, which provides efficient memory usage and compression capabilities.
Install the EPPlus NuGet package in your project.