Best way to disable any kind of caching?
Hi,
I have a TppReport component and a dataset connected to it, I go back and
forth changing the current record here and printing the report there, now I
had some caching problems, where the reports keep getting printed same as
first report, so I did the following:
with rbReport do begin
CachePages := False;
Reset;
ResetDevices;
Print;
end;
is this the best way? is it enough? is it too much?
Note: Template is loaded only once at the beginning, if this makes any
difference at all.
Thanks!
I have a TppReport component and a dataset connected to it, I go back and
forth changing the current record here and printing the report there, now I
had some caching problems, where the reports keep getting printed same as
first report, so I did the following:
with rbReport do begin
CachePages := False;
Reset;
ResetDevices;
Print;
end;
is this the best way? is it enough? is it too much?
Note: Template is loaded only once at the beginning, if this makes any
difference at all.
Thanks!
This discussion has been closed.
Comments
automatically, even if CachePages = true.
Cheers,
Jim Bennett
Digital Metaphors
http://www.digital-metaphors.com
info@digital-metaphors.com