Quantcast
Viewing all articles
Browse latest Browse all 1621

Created Unassigned: Exporting large files into XLSX [13605]

Hi,

I have a requirement where I need to create and excel file with 15000 records and 300 rows.
When I try to save the file using the following code

using (var fileData = new System.IO.FileStream(fileName, System.IO.FileMode.Create))
{
workbook.Write(fileData);
}
it is failing with OutOfMemoryException.

My question is how can I save large files (>30MB).

Thanks
Vijay

Viewing all articles
Browse latest Browse all 1621

Trending Articles