Browsing Preview gives wrong calculated value
Hi,
I have a problem with the following:
Report - Subreport - Group (With reprint Group Headers on subsequent pages
ON)
if i put a variable in the group header, with in the oncalc event i.e. the
following code:
Value:='Page '+ IntToStr(Report.PageNo);
The Value is not recalculated when browsing forward and backward in the
print preview.
After browsing, even the finally printed report is wrong.
This problem seems to occur in more places, with variables with code in the
'OnCalc' event.
Thanks and best regards,
Jeroen Koot
I have a problem with the following:
Report - Subreport - Group (With reprint Group Headers on subsequent pages
ON)
if i put a variable in the group header, with in the oncalc event i.e. the
following code:
Value:='Page '+ IntToStr(Report.PageNo);
The Value is not recalculated when browsing forward and backward in the
print preview.
After browsing, even the finally printed report is wrong.
This problem seems to occur in more places, with variables with code in the
'OnCalc' event.
Thanks and best regards,
Jeroen Koot
This discussion has been closed.
Comments
How is the value incorrect (i.e. does it show the wrong page number?). Try
setting the Report.CachePages property to True and see if that helps. Also,
you can try using a TppSystemVariable set to Page Desc to show the page
number automatically without calculations.
--
Regards,
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com