Memory usage in FR.Net

dannidanni Denmark
edited January 2010 in FastReport .NET
Hi

I have made a small report designer and a preview form based on Fr.Net.

Applications that use the forms run on windows terminals. I need to minimize the memory usage mainly from preview form.

The first time the application do a "ShowPreview" then the memory usage increase about 25 MB, the following tries within the Apliacation thread, the increase is about 15 MB.

This means if I start previewing on a lot of report the application will use a huge amount of memory.

Is there any way I can flush the memory useage of the PrefiewForm and the memory used for generatig a report?

Thanks.

Comments

  • edited 12:23AM
    Hello,

    It depends on your report complexity. I've made some tests with demo reports. Each new report opened in a separate preview window eats about 5mb.

    You can minimize the memory usage in the following ways:
    - use report.UseFileCache property to minimize the memory usage during preparing a report;
    - use FastReport.Utils.Config.PreviewSettings.PagesInCache property to minimize the memory usage while previewing a report.

Leave a Comment

Rich Text Editor. To edit a paragraph's style, hit tab to get to the paragraph menu. From there you will be able to pick one style. Nothing defaults to paragraph. An inline formatting menu will show up when you select text. Hit tab to get into that menu. Some elements, such as rich link embeds, images, loading indicators, and error messages may get inserted into the editor. You may navigate to these using the arrow keys inside of the editor and delete them with the delete or backspace key.