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.
extern domain tcamnt rpt.total
if [condition is met] then
rpt.total = rpt.total + detail.total
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.