Export consume to much memory

Stimulsoft Reports.NET discussion
Post Reply
satvcd
Posts: 12
Joined: Fri Feb 08, 2013 6:46 am

Export consume to much memory

Post by satvcd »

Hello,
I need export large of data(about 20 columns and 30 000 rows and more).
But Export to XLS file consume too much memory. About 600-700MB.
Is there any way, how can I reduce this?

Sample projet included.

Thanks for your reply.
Attachments
TestStimulSoft.zip
(63.98 KiB) Downloaded 185 times
HighAley
Posts: 8430
Joined: Wed Jun 08, 2011 7:40 am
Location: Stimulsoft Office

Re: Export consume to much memory

Post by HighAley »

Hello.

The whole rendered report is stored in memory.
While you use Unlimited Height property of the page, it's impossible to reduce consuming of memory.

You could try to comment next lines:

Code: Select all

page.UnlimitedBreakable = false;
page.UnlimitedHeight = true;
set cache mode:

Code: Select all

report.ReportCacheMode = StiReportCacheMode.On;
and use next option on export:

Code: Select all

Stimulsoft.Report.Export.StiExcelExportSettings.UseOnePageHeaderAndFooter = true;
Then using of memory will be reduced.

Thank you.
Post Reply