Report record section $print method
IT
it at plastipol.com
Thu Mar 13 09:52:07 UTC 2025
Hi,
I’m printing a report and I want that if some condition happens, omnis prints this line in kRed. So I have put a code in the $print method of the record section of the report like this:
If ivLineas.AL_FPAGO=1
Do $cinst.$objs.Record.$backcolor.$assign(kRed)
Else
Do $cinst.$objs.Record.$backcolor.$assign(kWhite)
End If
Do default
But omnis change $backcolor to kRed on the next line, not the line where ivLineas.AL_FPAGO=1. Seems that omnis is executing this code after printing, not before printing the record.
So, how I cant get omnis change the backcolor for the current printing record?
Thank you in advance.
xavier
More information about the omnisdev-en
mailing list