I report running with one group running a commission report. The issue is that the first record of the group is not being calculated to the second pass and hence not being included into the group total.
For future reference please begin a post by stating the version of ReportBuilder and Delphi that you are using.
I'm a bit unclear about the design of your report. Does this calculate correctly if your report is set to OnePass? Are you certain the OnCalc event is not firing for the first record? Try placing a ShowMessage command inside the OnCalc event to be sure. Have you successfully had this working in Delphi rather than RAP?
Sorry should have been a lot clearer. Looking back that was an awful post. The version I'm currently running is 10.04. The report will not calculate correctly if you set the pass to one time. I put the a showmessage into the OnCalc to only fire for the first record that appears in the group. The showmessage did appear, but the calculated value still showed as $0.00 and the group total still did not include the first records (or what should be) calculated total. The current timing is set to be start on Traversal and reset on Traversal. I have not tried it in Delphi nor have that option.
Which version of Delphi are you using? Are you using a registered copy of ReportBuilder or an application with RB built-in?
I would first recommend upgrading your version of ReportBuilder to the latest (10.06) and see if that helps. If not, please send a small example I can run on my machine that demonstrates the behavior in .zip format to support@digital-metaphors.com and I'll take a look at it for you.
Comments
For future reference please begin a post by stating the version of
ReportBuilder and Delphi that you are using.
I'm a bit unclear about the design of your report. Does this calculate
correctly if your report is set to OnePass? Are you certain the OnCalc
event is not firing for the first record? Try placing a ShowMessage command
inside the OnCalc event to be sure. Have you successfully had this working
in Delphi rather than RAP?
--
Regards,
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com
Sorry should have been a lot clearer. Looking back that was an awful post.
The version I'm currently running is 10.04. The report will not calculate
correctly if you set the pass to one time. I put the a showmessage into the
OnCalc to only fire for the first record that appears in the group. The
showmessage did appear, but the calculated value still showed as $0.00 and
the group total still did not include the first records (or what should be)
calculated total. The current timing is set to be start on Traversal and
reset on Traversal. I have not tried it in Delphi nor have that option.
Which version of Delphi are you using? Are you using a registered copy of
ReportBuilder or an application with RB built-in?
I would first recommend upgrading your version of ReportBuilder to the
latest (10.06) and see if that helps. If not, please send a small example I
can run on my machine that demonstrates the behavior in .zip format to
support@digital-metaphors.com and I'll take a look at it for you.
--
Regards,
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com
and see if that helps.
I'm sorry, for some reason you did not receive my first email. I just
re-sent the email. Let me know if you get it.
--
Regards,
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com