Export txt

Stimulsoft Reports.NET discussion
Post Reply
Leandro Borges
Posts: 219
Joined: Tue Oct 27, 2015 4:19 pm

Export txt

Post by Leandro Borges »

Hello.

My report is generating eighteen thousand pages. When I export to txt, it converts all those pages to a single file. The problem is the amount of memory it uses to generate the file. It is using 3gb. Is it possible to limit the amount of memory used by the report?

Thank you.
Leandro Borges
Posts: 219
Joined: Tue Oct 27, 2015 4:19 pm

Re: Export txt

Post by Leandro Borges »

Hello.

The problem only occurs when I export to txt. If I export to pdf or to another format, not much memory is consumed.

Thank you.
Lech Kulikowski
Posts: 6243
Joined: Tue Mar 20, 2018 5:34 am

Re: Export txt

Post by Lech Kulikowski »

Hello,

For export to txt, excel, word is used matrix, in this case, all export is prepared as a table in memory. Please try to turn on caching for your report, in this case, caching for StiMatrix will set automatically.
Also, please check the following article:
https://www.stimulsoft.com/en/documenta ... export.htm

Thank you.
Leandro Borges
Posts: 219
Joined: Tue Oct 27, 2015 4:19 pm

Re: Export txt

Post by Leandro Borges »

Hello.

How do I enable caching for my report?
How does it work?

Thank you.
Lech Kulikowski
Posts: 6243
Joined: Tue Mar 20, 2018 5:34 am

Re: Export txt

Post by Lech Kulikowski »

Hello,

You can set ReportCacheMode property for the report.

Thank you.
Leandro Borges
Posts: 219
Joined: Tue Oct 27, 2015 4:19 pm

Re: Export txt

Post by Leandro Borges »

Hello.

It worked.

Thank you.
Lech Kulikowski
Posts: 6243
Joined: Tue Mar 20, 2018 5:34 am

Re: Export txt

Post by Lech Kulikowski »

Hello

We are always glad to help you!
Please let us know if you need any additional help.

Thank you.
Post Reply