Strange : Variables sometimes not calculate in preview
Hi again ;-)
Got a strange problem : With some (not all) templates I have the problem
that variables are sometimes not calculated in the preview form.
If I use the designer and change to preview, select the page with the
variables on it, they sometimes calc, sometimes not...I have to move one
page forward or backward, then back, and after a few tries they show the
results.
If I use Report.Print (to Screen) they do never calculate.
If I export or print to printer, they always calculate.
This behaviour only occurs with some templates, but I can't see any
differences between the templates in which it works and in those it doesn't
work.
Any Ideas ?
Cheers,
Heiko Kn?ttel
Got a strange problem : With some (not all) templates I have the problem
that variables are sometimes not calculated in the preview form.
If I use the designer and change to preview, select the page with the
variables on it, they sometimes calc, sometimes not...I have to move one
page forward or backward, then back, and after a few tries they show the
results.
If I use Report.Print (to Screen) they do never calculate.
If I export or print to printer, they always calculate.
This behaviour only occurs with some templates, but I can't see any
differences between the templates in which it works and in those it doesn't
work.
Any Ideas ?
Cheers,
Heiko Kn?ttel
This discussion has been closed.
Comments
When you say the variables do not calculate, do you mean that the OnCalc
event in not even fired or the value is incorrect? Try placing a break
point inside the OnCalc event of these variables and see what is happening
to the value.
--
Regards,
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com
I guess the OnCalc-Events are not fired, all result values are null
break points in the RAP-Editor ? How ? Nothing like this mentioned in the
manual.
Regards,
Heiko
For future reference please let us know you are using RAP or post all RAP
questions in the RAP newsgroup. This helps us understand what is going on
and allows us to give you a quicker and more accurate answer most of the
time .
RAP code can be debugged in two ways. Using CodeSite by Raize
(http://www.raize.com), or by simply placing ShowMessage commands inside
your code to discover the values of certain items at given times. I would
recommend placing some ShowMessages in your OnCalc events to first find out
if they are fired and second find out why the values are not being set
correctly.
--
Regards,
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com