Cached Data.
Hi all.
I'm using ReportBuilder 9.01 and Delphi 7.
I have created an end user application (obviously departing from the end
user applications created as demo or tutorials of ReportBuilder components)
and I've noticed the following behavior:
1. When I "preview" a report, usually that takes more than 1 page, the
report is generated by page. It means that it generates the first page and
shows it, when I push the "next page" button then it takes a while to show
the next page because it is calculating the subtotals for that next page.
This is not functional for me.
2. When I "print" a report, unless it takes a while to generate it, which is
not big deal because of the amount of calculation and data loaded, but it
increases the size of the application in memory. I've been watching this
behavior closely and my guess is that ReportBuilder loads data and caches it
locally while generating the report.
If my guess is true, is there any way for me to clear this cached data as
soon as my report closes (after printing or previewing)?
Some help would be appreciated here.
Thanks.
Fabio.
I'm using ReportBuilder 9.01 and Delphi 7.
I have created an end user application (obviously departing from the end
user applications created as demo or tutorials of ReportBuilder components)
and I've noticed the following behavior:
1. When I "preview" a report, usually that takes more than 1 page, the
report is generated by page. It means that it generates the first page and
shows it, when I push the "next page" button then it takes a while to show
the next page because it is calculating the subtotals for that next page.
This is not functional for me.
2. When I "print" a report, unless it takes a while to generate it, which is
not big deal because of the amount of calculation and data loaded, but it
increases the size of the application in memory. I've been watching this
behavior closely and my guess is that ReportBuilder loads data and caches it
locally while generating the report.
If my guess is true, is there any way for me to clear this cached data as
soon as my report closes (after printing or previewing)?
Some help would be appreciated here.
Thanks.
Fabio.
This discussion has been closed.
Comments
If you would like ReportBuilder to make all page measurements and
calculations prior to viewing the first page (although this is most likely
not what is causing your pages to load slowly), try setting the
Report.PassSetting to psTwoPass. This is a published property so it is
available in the Delphi Object Inspector.
ReportBuilder will cache each page to memory if the Report.CachePages
property is set to true. If not, each object is freed as each page is
viewed. Once you close a report all objects should be freed from memory.
How are you monitoring this memory usage? ReportBuilder is run through a
memory checker before each release so there are little or no known memory
leaks in each version.
--
Regards,
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com