`
Par2: Greenbar on Report 2012-05-07 -- Abe Jimenez You need to filter the band so it doesn't print automatically and then put the code in take record. SetTarget(Report) ?DetailBand{Prop:Color} = Color:Green SetTarget() Print(RPT:DetailBand) SetTarget(Report) ?DetailBand{Prop:Color} = Color:White SetTarget() Print(RPT:DetailBand) Abe adds: The code I posted was not actual working code. It just shows how to change the color of the band. What you want is more like: Loc:Lines += 1 If Loc:Lines % 2 LOC:SelectedColor = 'Color:Green' Else LOC:SelectedColor = 'Color:White' End SetTarget(Report) ?DetailBand{Prop:Color} = LOC:SelectedColor SetTarget() Print(RPT:DetailBand) Russ Egen adds: In ThisWindow.TakeRecord, after parent call: REPORT$?Detail{PROP:Color} = CHOOSE(LOC:Flag = 1,00F0FFF0h,COLOR:White) LOC:Flag = CHOOSE(LOC:Flag = 1,0,1) Printed November 21, 2024, 10:25 am This article has been viewed/printed 35238 times. |