rduncan10
16th March 2011, 17:16
I have a problem where some variables created in a report script don't print correctly when the user prints the report to Display (using a Screen printer). They do work when the user uses any other type of printer.
Report Script
declaration:
extern domain tcamnt rpt.total
detail.1:
before.layout:
if [condition is met] then
rpt.total = rpt.total + detail.total
endif
lattr.print = false
"rpt.total" is then added to the "after.report" section. If printed to display, this shows $0. If printed elsewhere, it shows the correct amount.
I usually try to avoid report scripts as much as I can. I admit I don't fully understand how to handle the variables here. I've tried various declaration methods, but nothing seems to work.
Thanks,
R
Report Script
declaration:
extern domain tcamnt rpt.total
detail.1:
before.layout:
if [condition is met] then
rpt.total = rpt.total + detail.total
endif
lattr.print = false
"rpt.total" is then added to the "after.report" section. If printed to display, this shows $0. If printed elsewhere, it shows the correct amount.
I usually try to avoid report scripts as much as I can. I admit I don't fully understand how to handle the variables here. I've tried various declaration methods, but nothing seems to work.
Thanks,
R