Moving a picture dynamically
I'm trying to move a picture object using code but I can't seem to get it to work. Has anyone else been able to do this or know how to?
Basically I've been dropping a picture object onto the stage (loading an image) and setting left in the properties window to 0. I then implement one of the onAfterPrint / onBeforePrint methods. I've tried implementing quite a few events from the page to the picture level with no luck. All my code does is this:
This doesn't seem to work. Any ideas how to get this to work?
Thanks, Troy
Basically I've been dropping a picture object onto the stage (loading an image) and setting left in the properties window to 0. I then implement one of the onAfterPrint / onBeforePrint methods. I've tried implementing quite a few events from the page to the picture level with no luck. All my code does is this:
Picture1.Left := 5;
This doesn't seem to work. Any ideas how to get this to work?
Thanks, Troy
Comments
in the report use the obp event of the band that contains the pictureview.
typically
if (somecondition = true) then picture1.left := doubleprecision value in pixels;
works fine for me.