Reports with thousands of pages

Stimulsoft Reports.NET discussion
Milton Guevara
Posts: 53
Joined: Thu Aug 21, 2008 9:28 pm
Location: Peru

Reports with thousands of pages

Post by Milton Guevara »

Hello
I have reports accounting, some of them can reach 7000 pages. When the preview, the PC is note quite slow and Windows XP displays the message that the memory is running out (i have 1 GB RAM).
How handles stimulsoft memory? do when the preview all pages loaded to meroria RAM?
is there a way of paginacion?

Any idea to control this type of reports?

Thanks
Edward
Posts: 2913
Joined: Fri Jun 09, 2006 4:02 am

Reports with thousands of pages

Post by Edward »

Hi, Milton.

Yes, there is a way on how such reports can be rendered.

In the 'Properties' window in the Designer please select 'Report' object and set ReportCacheMode in Auto.

If the Report.ReportCacheMode property has been set in "On", then property starts to cache rendered pages
to disk after the predefined number of the pages rendered.

The amount of the pages is defined in StiOptions.Engine.ReportCache.LimitForStartUsingCache property .

Path for the report cache may be specified in the following property:

StiOptions.Engine.ReportCache.CachePath

Thank you.
Milton Guevara
Posts: 53
Joined: Thu Aug 21, 2008 9:28 pm
Location: Peru

Reports with thousands of pages

Post by Milton Guevara »

Hello Edward
Thank you for your help. I have two questions:

1. - This functionality cache can be used with the old version with Engine V1?.. (i am using the version 2008.2 .275)

2. - The entire configuration can be done from the designer or has to be done from code.

Thank you
Milton
Edward
Posts: 2913
Joined: Fri Jun 09, 2006 4:02 am

Reports with thousands of pages

Post by Edward »

Hello, Milton.
mguevara wrote:1. - This functionality cache can be used with the old version with Engine V1?.. (i am using the version 2008.2 .275)
Yes, you can use this functionality in EngineV2 and in EngineV1. We added this functionality in 2007.1 version, so you can certainly use it in your version of the report engine.
2. - The entire configuration can be done from the designer or has to be done from code.
These settings could be set in the BeginRender event of the report inside of the Designer. There is no need to change the code of the main application.

Thank you.
Milton Guevara
Posts: 53
Joined: Thu Aug 21, 2008 9:28 pm
Location: Peru

Reports with thousands of pages

Post by Milton Guevara »

Hello Edward

I have activated the cache and run the report (7000 pages) i have seen that has created a folder whose content is 7000 separate files. This would be a not a problem with overhead on the directory entries of the Windows?.... or is it necessary to manually delete these files generated?


Milton
Vital
Posts: 1278
Joined: Fri Jun 09, 2006 4:04 am

Reports with thousands of pages

Post by Vital »

Hello,
mguevara wrote: I have activated the cache and run the report (7000 pages) i have seen that has created a folder whose content is 7000 separate files. This would be a not a problem with overhead on the directory entries of the Windows?.... or is it necessary to manually delete these files generated?
This pages will be removed when report will be disposed. So you can call method Dispose of StiReport component.

Thank you.
Milton Guevara
Posts: 53
Joined: Thu Aug 21, 2008 9:28 pm
Location: Peru

Reports with thousands of pages

Post by Milton Guevara »

Hello Vital

I have made the change suggested with the Dispose method, but the thousands of pages are not deleted. Please may indicate with some example how to resolve this issue.
i'am using version 2008.3.315.0

Thank you

Milton
Edward
Posts: 2913
Joined: Fri Jun 09, 2006 4:02 am

Reports with thousands of pages

Post by Edward »

Hi Milton,

Please take into consideration, that files only of the current session will be deleted. Files from previous rendering you had to delete 'by hand'. In case if rendering of the report has been terminated and report is not disposed, then you have to delete these files 'by hand' again.

Thank you.
Milton Guevara
Posts: 53
Joined: Thu Aug 21, 2008 9:28 pm
Location: Peru

Reports with thousands of pages

Post by Milton Guevara »

I have the version 2008.3 .315 .0, i have configured the property "reportcachemode" with the value "on". Before running the report manually clean the disk cache, then when you run the report stimulsoft creates the files in the cache (7000 entries in the disk), but when you close the report does not delete the files from the cache.
Please have some example or indications but clear

This is urgent
Milton
Vital
Posts: 1278
Joined: Fri Jun 09, 2006 4:04 am

Reports with thousands of pages

Post by Vital »

Hello Milton,

You need call Dispose method of report to clear page files.

Thank you.
Post Reply