OnBeforePrint is called for all bands
GreatDayDan
Keller, Texas
Good Morning!
I am calling the OnBeforePrint method to load an image. This method is triggering for every band but I need to try to load the image only in a specific band.
How can I test for the (title) band so that I can bypass the other bands (and not try to load the image when they are printing?)
Thanks...Dan'l
I am calling the OnBeforePrint method to load an image. This method is triggering for every band but I need to try to load the image only in a specific band.
How can I test for the (title) band so that I can bypass the other bands (and not try to load the image when they are printing?)
Thanks...Dan'l
Comments
if you are in the internal report script use the opb event of the pictureview object not the band's.
if you are in delphi using the obp of the tfrxreport component which fires for every object in the report
your event handler code becomes
// use the name of the pictureviewobject in frs oi
if sender.name = 'Picture1' then
//cast the sender to its type and mod any props
tfrxpictureview(sender).picture.loadfromfile('path&filename');