Page 1 of 2

Reports with thousands of pages

Posted: Wed Nov 19, 2008 11:58 pm
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

Reports with thousands of pages

Posted: Fri Nov 21, 2008 1:48 am
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.

Reports with thousands of pages

Posted: Fri Nov 21, 2008 7:57 am
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

Reports with thousands of pages

Posted: Fri Nov 21, 2008 9:49 pm
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.

Reports with thousands of pages

Posted: Sat Nov 22, 2008 8:15 am
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

Reports with thousands of pages

Posted: Fri Nov 28, 2008 12:06 pm
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.

Reports with thousands of pages

Posted: Tue Dec 23, 2008 10:53 am
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

Reports with thousands of pages

Posted: Wed Dec 24, 2008 9:24 am
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.

Reports with thousands of pages

Posted: Thu Jan 01, 2009 6:06 pm
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

Reports with thousands of pages

Posted: Fri Jan 02, 2009 6:54 am
by Vital
Hello Milton,

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

Thank you.