>I can't think of any way to do this other than running the report twice. Once to build a cursor that marks each detail record with the page number. Then you could run code to scan through and mark the record that happen to be the last ones on a page. Then when you run the report the 2nd time you could refer to that temporary cursor you built in the first pass.
>
>Not a pretty solution .. but the only one I can think of.
You don't needed that,
I see the last line at a page running twice time.
put a variable before get report.
lastrec=0
put in when any detail text:
If lastrec=Recno()
wait wind "this is the last line!.."
EndIf
lastrec=Recno()