OnBeforePrint alternate
Hello,
I wanna write a delphi component that takes a picture form a source and assign it to frxPictureview control. Offcouse I can do this in Report.OnBeforePrint event. But I can not use this event for some reasons. I can find picture control using Report1.FindObject() but I need an event similar to OnBeforePrint or an alternate technique through which I could avoid OnBeforePrint event and assign picture before report window opens. Is it possible and how?
thanks in advance,
Regards
MS Pathan
I wanna write a delphi component that takes a picture form a source and assign it to frxPictureview control. Offcouse I can do this in Report.OnBeforePrint event. But I can not use this event for some reasons. I can find picture control using Report1.FindObject() but I need an event similar to OnBeforePrint or an alternate technique through which I could avoid OnBeforePrint event and assign picture before report window opens. Is it possible and how?
thanks in advance,
Regards
MS Pathan
Comments
You need to load your report into a local TFRXreport object, then find the tfrxpicture object in the objectlist, and assign its properties.
I have something like this:
(lPic is currently pointing to the TfrxPictureView object in the report)