Subreports losing variable from main report
I have a report with multiple nested subreports.
I can preview the report in the designer and it is correct the first go. If
I immediately preview again, I get a compiler message telling me it could
not compile DetailAfterGenerate3. I am calculating a Global Variable in
this event that is declared in the main report.
aVar1 := aVar1 + plPipeline['Value'];
This is for a value to be used in the summary of the report.
It compiles and works great on the first try. But after getting the above
error, I go back to RAP and it no longer compiles. Also, my Main: Variables
is no longer visible in the Subreport either.
I am running RB 5.56, Delphi 5.0, and NT4.0.
Any thoughts,
I can preview the report in the designer and it is correct the first go. If
I immediately preview again, I get a compiler message telling me it could
not compile DetailAfterGenerate3. I am calculating a Global Variable in
this event that is declared in the main report.
aVar1 := aVar1 + plPipeline['Value'];
This is for a value to be used in the summary of the report.
It compiles and works great on the first try. But after getting the above
error, I go back to RAP and it no longer compiles. Also, my Main: Variables
is no longer visible in the Subreport either.
I am running RB 5.56, Delphi 5.0, and NT4.0.
Any thoughts,
This discussion has been closed.
Comments
that the problem will go away with RB 7 as we have not had any reports of
this problem in RB 7.
Cheers,
Jim Bennett
Digital Metaphors
http://www.digital-metaphors.com
info@digital-metaphors.com