I have overridden the _reportlistener class in order to print small images for a condition that exist in a user comment at a rectangle control at report. Everything works ok but when the detail band overflow to next page the images that must be printed at the second page are reprinted at the first page too.
Thanks for any help.
P.S.
The code for the Render method is :
LPARAMETERS nfrxrecno, nleft, ntop, nwidth, nheight, nobjectcontinuationtype, ccontentstoberendered, gdiplusimage
THIS.pprinted = .T.
LOCAL cuserdata , cdatatorender
cuserdata = THIS.areport[nfrxrecno,_frx_COMMENT]
cdatatorender = ccontentstoberendered
IF ! EMPTY(cuserdata)
cdatatorender =THIS.creategdiobject(nfrxrecno,;
nleft,ntop,nwidth,nheight,;
nobjectcontinuationtype , ;
ccontentstoberendered, gdiplusimage,cuserdata)
ELSE
DODEFAULT(nfrxrecno,;
nleft,ntop,nwidth,nheight,;
nobjectcontinuationtype, ;
cdatatorender, gdiplusimage)
ENDIF
----------------------------------------
Nikos Kiriakoulakos
Software Engineer
Dep. of Medical Informatics
Apollo Ltd.
Greece
----------------------------------------