Reports designed in CR v6. The main report prints Oracle data. Each detail line contains a subreport which retrieves relevant details from an AS400 machine. StoreNumberVar is used to save a value from the subreport so that it can be totalled on the main report.
This all works fine when called from CR6 designer.
An application has been written in Delphi to call the VCL component to allow users to access the report(s). When called through this mechanism, the report totals are incorrect. What has happened is that the value returned from EACH call to the subreport is the value of the very last record on the report. All other functionality is correct, but the sub-totals and grand total are not.
I tried to run the same report using CR v7 designer, and it produced identical results. This suggests that the VCL element believes that it is running at version 7, and not 6. Is this possible, or is it more likely that the installations on my machine have become confused?
If the latter is the case, please advise on the likely sources of such confusion.
I have created a temporary report using v7, utilising Global and Shared variables. This report functions correctly within the CR7 designer, and also when called from the VCL element. Unfortunately we cannot use version 7 for the project implementation, so we urgently need a resolution to this query.
TIA
[sig][/sig]
This all works fine when called from CR6 designer.
An application has been written in Delphi to call the VCL component to allow users to access the report(s). When called through this mechanism, the report totals are incorrect. What has happened is that the value returned from EACH call to the subreport is the value of the very last record on the report. All other functionality is correct, but the sub-totals and grand total are not.
I tried to run the same report using CR v7 designer, and it produced identical results. This suggests that the VCL element believes that it is running at version 7, and not 6. Is this possible, or is it more likely that the installations on my machine have become confused?
If the latter is the case, please advise on the likely sources of such confusion.
I have created a temporary report using v7, utilising Global and Shared variables. This report functions correctly within the CR7 designer, and also when called from the VCL element. Unfortunately we cannot use version 7 for the project implementation, so we urgently need a resolution to this query.
TIA
[sig][/sig]